https://www.acmicpc.net/problem/1676
n=int(input()) count=0 while n>=5: count+=n//5 n//=5 print(count)