VK Cup 2012 Wild-card Round 1 |
---|
Finished |
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).
The only line of input contains an integer n (1 ≤ n ≤ 1000000).
Output the number of trailing zeros in n!.
6
1
24
4
In the first sample 6! = 720.
In the second sample 24! = 620448401733239439360000.
Name |
---|