Олимпиадный тренинг

Задача 38931. How many numbers are greater than the previous


Задача

Темы: Цикл for
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<105). The following N lines contain numbers, one per line. Each number does not exceed 109.

Imprint
Display the answer to the problem.
 
Examples
# Input Output
1 5
-1
-2
2
3
-3 
2

Запрещенные операторы:[