e-olymp
Competitions

December 2 - BMTK Programming School, Small League

Find Minimum

Alarm in Summer Computer School! Minimum is lost. You must find it.

Input

The first line contains number n (1n1000). In the second line n integers are given, each of them is no more than 105 by absolute value.

Output

Print the minimum among the n given numbers.

Time limit 1 second
Memory limit 128 MiB
Input example #1
1
2
Output example #1
2
Input example #2
4
5 8 -4 6
Output example #2
-4