Data flow processing - 2
Problem
Given a non-empty sequence of integers ending in zero. Zero is not included in the sequence, it serves as a sign of its end. Find the number of numbers in the sequence that are greater than the first number entered.
Input
The input is the numbers of the sequence, one number per line. Zero - a sign of the end of input.
Imprint
Print the answer to the problem.
Examples
# |
Input |
Output |
1 |
3
5
3
4
7
0 |
3 |
Запрещенные операторы: break
; list
; [