#P1006. Minimum value in a sequence——序列最小值

Minimum value in a sequence——序列最小值

Statement

Given nn and nn integers aia_i, find the minimum value among these nn integers.

Input

Input a positive integer nn on the first line, indicating the number of digits.

Input the second line with nn non-negative integers, representing a1,a2,,ana_1, a_2, \dots, a_n, separated by spaces.

The data guarantees that n100n\le100 and 0ai10000\le a_i \le 1000.

Output

Output a non-negative integer representing the minimum value among these nn non-negative integers.

Samples

3
3 4 5
3
9
3 14 5 1 3 4 5 5 1
1