atcoder#ABC275A. [ABC275A] Find Takahashi

[ABC275A] Find Takahashi

Score : 100100 points

Problem Statement

There are NN bridges in AtCoder Village. The height of the bridge numbered ii is HiH_i (ii is an integer between 11 and NN). Every two different bridges in the village have different heights.

Print the number representing the highest bridge in the village.

Constraints

  • 1N1001\leq N \leq 100
  • 1Hi1091\leq H_i \leq 10^9
  • All HiH_i are different.
  • All values in the input are integers.

Input

The input is given from Standard Input in the following format:

NN

H1H_1 H2H_2 \ldots HNH_N

Output

Print the integer representing the highest bridge in AtCoder village.

3
50 80 70
2

The village has three bridges. The first, second, and third bridges have heights of 5050, 8080, and 7070, respectively, so the second bridge is the highest. Thus, 22 should be printed.

1
1000000000
1

The village has only one bridge, so the first bridge is the highest.

10
22 75 26 45 72 81 47 29 97 2
9

The village has ten bridges, and the ninth bridge (with a height of 9797) is the highest.