Limits 1s, 512 MB

MangoSoft is one of the top companies in the software industry all over the world. They have a branch at Bangladesh. Although this branch is new but it has proved its strength. The branch is getting new projects from the head office frequently because of its talented team. The interesting thing is every programmer of this company has a strong competitive programming background. This branch hires junior software engineers every week.

Every week they organize a programming contest and anyone can attend. Each contestant gets a unique score after the contest. MangoSoft hires the contestant who secures the 1st Place. They don’t publish the name of the hired contestant. They only publish the score.

A few days ago you became the head of the recruitment team. So this time your responsibility is to publish the score of the contestant who secures the 1st place.

For example, if you are given these 5 scores: 6, 8, 1, 7, and 9; then the score of the 1st place will be 9.

Input

The first line contains an integer $N$ ($1 \le N \le 100$). Here $N$ is the total number of contestants.

The second line contains $N$ integer numbers.

Output

Print the highest score in a line.

Sample

InputOutput
5                                  
4    7    2    3    9                    
9

Submit

Login to submit.

Statistics

96% Solution Ratio
joyislam1954Earliest, Oct '18
JCPSC_TTMFastest, 0.0s
Mili290Lightest, 0 B
mashfiqur404Shortest, 35B
Toph uses cookies. By continuing you agree to our Cookie Policy.