Problem2510--最高分和最低分

2510: 最高分和最低分

Time Limit: 1 Sec  Memory Limit: 128 MB
Submit: 41  Solved: 22
[Status] [Submit] [Creator:]

Description

小朋友们进行了一场考试,试卷满分为100分。现在老师想找出分数最高和分数最低的分数,请帮老师找到。

Input

第1行:一个整数n,代表学生的个数。 (1≤n≤100
接下来n行,每行一个学生的分数。      (1≤分数≤100 

Output

一行:最低分和最高分,之间用单个空格分割。

Sample Input Copy

5
99
59
87
88
92

Sample Output Copy

59 99

Source/Category