Preparando MOJI

Factorial zeros

3000ms 262144K

Description:

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

Sample Input:

6

Sample Output:

1

Sample Input:

24

Sample Output:

4

Note:

In the first sample 6! = 720.

In the second sample 24! = 620448401733239439360000.

Informação

Codeforces

Provedor Codeforces

Código CF162F

Tags

*special

Submetido 0

BOUA! 0

Taxa de BOUA's 0%

Datas 09/05/2023 08:35:10

Relacionados

Nada ainda