The smallest and the largest height
An array of heights (in cm) of the members of a sports club is given. Find the smallest and the largest height.
Input: the number of members n, and then n heights.
Output: the smallest and the largest height, each in its own line.
Example
Input
5
182 175 190 168 179Output
Smallest: 168
Largest: 190