Problem Description

Read n integers. Output minimum and maximum in one line.

Input Format

First line n. Second line n integers.

Output Format

One line: min max.

Sample Test Case

Input:
4 5 -2 7 1
Output:
-2 7

Constraints

1

Solutions (0)

No solutions submitted yet. Be the first!

Discussion (0)

No comments yet. Start the discussion!

Prev Next