Length of the sequence
Execution time limit is 1 second
Runtime memory usage limit is 128 megabytes
Given a sequence of nonnegative integers ending with number 0. After reading zero, the program must terminate its work and output the amount of read number, not including the final zero. The numbers following 0, is not necessary to read.
Input
Sequence of non-negative integers, each written in a separate line.
Output
Print the amount of numbers in the sequence before the first zero.
Examples
Input #1
Answer #1
Submissions 1K
Acceptance rate 68%