fork download
  1. x=int(input())
  2. podzielne=0
  3.  
  4. while x!=0:
  5. if x%3==0:
  6. podzielne=podzielne+1
  7. x=int(input())
  8.  
  9. print(podzielne)# your code goes here
Success #stdin #stdout 0.07s 14084KB
stdin
1
2
3
4
5
6
0
stdout
2