300850: CF162F. Factorial zeros
Memory Limit:256 MB
Time Limit:3 S
Judge Style:Text Compare
Creator:
Submit:0
Solved:0
Description
F. Factorial zerostime limit per test3 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard output
You are given a positive integer n. Output the number of trailing zeros in n! (n! denotes a product of integers between 1 and n, inclusive).
InputThe only line of input contains an integer n (1 ≤ n ≤ 1000000).
OutputOutput the number of trailing zeros in n!.
ExamplesInput6Output
1Input
24Output
4Note
In the first sample 6! = 720.
In the second sample 24! = 620448401733239439360000.