def factorial(n):
if n <= 1:
return 1
else:
return n * factorial(n-1)
n = int(input())
s = str(factorial(n))
count = 0
for i in str(factorial(n))[::-1]:
if i == '0':
count += 1
else:
break
print(count)