游客 Signup | Login
中文 | En

2376 - 【入门】求n个数的最大值和最小值0

通过次数

0

提交次数

0

Time Limit : 1 秒 Memory Limit : 128 MB
任意输入n个整数,把它们的最大值,最小值求出来.

<div>
</div>

Input

输入只有一行,包括一个整数n(1<=n<=20)后面跟着n个数.

Output

输出只有一行包括2个整数。

Examples

Input Format

5 1 99 3 6 0

Output Format

99 0