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).

Input

The only line of input contains an integer n (1 ≤ n ≤ 1000000).

Output

Output the number of trailing zeros in n!.

ExamplesInput
6
Output
1
Input
24
Output
4
Note

In the first sample 6! = 720.

In the second sample 24! = 620448401733239439360000.

Input

加入题单

算法标签: