Find Minimum
Read an integer N, then read N integers. Print the smallest value.
Input
- First line: an integer
N(1 <= N <= 2·10^4) - The next
Nlines: one integer per line (-10^9 <= x <= 10^9)
Output
A single integer: the minimum value among the N numbers.
Examples
Input:
5
3
1
4
1
5
Output: 1
Input:
3
10
20
30
Output: 10
Input:
1
7
Output: 7
Input:
4
-5
-1
-10
-3
Output: -10