Problem D
Hitastig
Languages
en
is

The last
Can you help Hannes find the highest and lowest temperatures
from the last
Input
The input is on two lines. The first line contains a single
integer
Output
Print two integers, first the highest temperature and then
the lowest temperature from the last
Scoring
Group |
Points |
Constraints |
1 |
80 |
|
2 |
20 |
No further constraints |
Sample Input 1 | Sample Output 1 |
---|---|
7 -3 -2 -1 0 1 2 3 |
3 -3 |
Sample Input 2 | Sample Output 2 |
---|---|
1 1 |
1 1 |