a=[int(i) for i in input().split()] q=0for i in range(len(a)): if a[i]==3: q+=1print(q)
1 2 3 4 5 6 7 3 3 4 5 6 7 8 9 0 8 7 6 5 3 3 3
6
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!