LearnPy Hub
← Arena
EasyRating 900

Breaking Records

A player's scores are listed by game. The first game sets both records. Count how many times she broke her highest-score record and how many times her lowest-score record.

Input

n, then n scores.

Output

Two integers.

Sample 1

Input
9
10 5 20 20 4 5 2 25 1
Output
2 4

Sample 2

Input
1
0
Output
0 0
solution.py
Output appears here
Breaking Records · Python Arena problem · LearnPy Hub