fork download
  1. a=[int(i) for i in input().split()]
  2. q=0
  3. for i in range(len(a)):
  4. if a[i]==3:
  5. q+=1
  6. print(q)
Success #stdin #stdout 0.02s 9196KB
stdin
1 2 3 4 5 6 7 3 3 4 5 6 7 8 9 0 8 7 6 5 3 3 3
stdout
6