求n个数中最大值和最小值
第一行输入一个正整数 $n$
第二行输入 $n$ 个整数,以空格隔开。
输出两行,第一行为最大值,第二行为最小值。
5 53 2 56 16 7
56 2
$1 \le n \le 10000$
所有的元素的绝对值都小于10000