Given a natural number
N - the number of numbers that are input. Determine how many numbers are greater than the previous entered number.
Input
The first line contains a natural number
N (N<10
5). The following
N lines contain numbers, one per line. Each number does not exceed 10
9.
Imprint
Display the answer to the problem.
Examples
| # |
Input |
Output |
| 1 |
5
-1
-2
2
3
-3 |
2 |
Запрещенные операторы:[