A customer came to the market and decided to buy two watermelons. He wanted to experiment by buying the heaviest and the lightest watermelons. But there is one problem: there are many watermelons and he does not know how to choose the lightest and the heaviest one. Help him!
The first line contains the number of watermelons (n \leq 30000). The second line contains numbers, each number is the mass of the corresponding watermelon. All weights of watermelons are positive integers and do not exceed .
Print two numbers: the weight of the lightest watermelon and the weight of the heaviest watermelon the customer will buy, or print the message Ooops! (without quotes), if there are not enough watermelons.
Example 1
Example 2
Example 3