Length of the sequence#4729

Length of the sequence

1 second
128 megabytes
Very easy

Given a sequence of nonnegative integers ending with number . After reading zero, the program must terminate its work and output the count of numbers read, not including the final zero. It is not necessary to read the numbers following .

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

Example 1

Loading
Loading