x=int(input())licznik=0while x!=0: x=int(input()) if x%5==0: licznik+=1print(licznik)
5 2 4 20 35 0
3
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!