#K68932. Find the Maximum Elevation

    ID: 32974 Type: Default 1000ms 256MiB

Find the Maximum Elevation

Find the Maximum Elevation

You are given a sequence of integers representing the elevation at each recorded point during a trip. Your task is to determine the highest elevation reached. Formally, if the elevations are given as \(a_1, a_2, \dots, a_n\), you need to compute \(\max_{1 \le i \le n} a_i\).

The input will be provided via standard input and the result should be written to standard output.

inputFormat

The first line of input contains a single integer \(n\), which is the number of recorded elevation points. The second line contains \(n\) space-separated integers representing the elevation at each point.

outputFormat

Output a single integer --- the maximum elevation reached during the trip, i.e. \(\max_{1 \le i \le n} a_i\).

## sample
5
100 200 300 400 300
400

</p>