Module: (Python) Conditional loop statement - WHILE


Problem

16 /21


Number of numbers that satisfy the condition

Problem

The input of the program receives an unknown number of integers, the input ends with zero (zero is not included in the sequence). Determine how many numbers received that are divisible by 3.

Input
The input to the program is numbers, one number per line.

Imprint
Print the answer to the problem.
 

 

Examples
# Input Output
1 1
2
3
0
1