#C4273. Maximum and Minimum Points

    ID: 47793 Type: Default 1000ms 256MiB

Maximum and Minimum Points

Maximum and Minimum Points

Given the points scored by n developers, your task is to determine the maximum and minimum points among them. This problem evaluates your ability to process numerical inputs, use built-in functions, and output results in the required format.

You will be given an integer n representing the number of developers followed by n integers representing the points each developer achieved. Compute and output the highest and lowest scores.

inputFormat

The first line contains an integer n (1 ≤ n ≤ 105), representing the number of developers.

The second line contains n space-separated integers. Each integer can be positive, negative, or zero, and represents the points achieved by a developer.

outputFormat

Output a single line with two space-separated integers: the maximum points and the minimum points, respectively.

## sample
5
3 5 2 4 1
5 1