Drop links or images here to add them to the editor.

Minimum of Array ⭐⭐

Read an integer N. This number indicates how many values the array will have.

Then, read N integers (one per line) and store them in an array.

Finally, find and display the smallest number in the array.

Hints:

Input

An integer N, followed by N integers, one per line.

Output

Print a single integer: the smallest of all elements.

Example

Input:

5
3
7
1
9
5

Output:

1