#K39747. Maximum Drone Distance

    ID: 26489 Type: Default 1000ms 256MiB

Maximum Drone Distance

Maximum Drone Distance

You are given a fleet of drones where each drone can fly a certain maximum distance. The problem is to determine the maximum distance any drone in the fleet can fly.

Formally, you are given an integer \( n \) representing the number of drones, and a list of \( n \) positive integers \( d_1, d_2, \ldots, d_n \) where each \( d_i \) is the maximum distance the \( i \)-th drone can fly. Your task is to output the maximum value among these distances.

Input format: The input is read from standard input. It consists of two lines. The first line contains the integer \( n \). The second line contains \( n \) space-separated integers representing the maximum distances of the drones.

Output format: Output a single integer denoting the maximum flight distance among the drones.

inputFormat

The first line contains an integer \( n \) (the number of drones). The second line contains \( n \) space-separated integers \( d_1, d_2, \ldots, d_n \), where \( d_i \) is the maximum distance the \( i \)-th drone can fly.

outputFormat

Output a single integer representing the maximum distance among the given drones.

## sample
1
100
100