#P57. [KBC005A] Aircraft
[KBC005A] Aircraft
Source
This problem is adapted from Long Long OJ. All rights reserved.
Problem Description
One day, the State of hjj dispatched aircraft to the State of lzh. However, the State of lzh has a laser cannon that can destroy all aircraft with a height not exceeding (where is the height setting of the laser cannon) in one shot. Given the heights of the aircraft, find the minimum height for the laser cannon to destroy all aircraft in one shot.
Input Format
Two lines.
The first line contains a positive integer .
The second line contains positive integers .
Output Format
A single line containing a positive integer, representing the minimum height of the laser cannon.
Samples
6
1 1 4 5 1 4
5
Data Range
, .