fork download
  1. c=0 #niepodzielne
  2. b=0 #podzielne
  3. a = int(input())
  4. while a!=0:
  5. if a % 3 == 0: b=b+1
  6. else: c=c+1
  7. a=int(input())
  8. print(b)
Success #stdin #stdout 0.11s 14188KB
stdin
6
9
8
2
5
4
-3
0
stdout
3