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.
Sequence of non-negative integers, each written in a separate line.
Print the amount of numbers in the sequence before the first zero.