HomeVolumesContestsSectionsForumsUsersPrintHelpAbout

Sections > Unsorted > problem:


Trailing Zeros

Section problems

• Чем больше, тем лучше
• Числа делятся на K
• Шашечная доска
• Эки сандын суммасы
• Элис менен Бобдун конфеттери
• Nice Floor
• Factorial
• Number Spiral
• Trailing Zeros
• Apple Division
• Exponentiation
• Josephus Queries
• Coin Combinations I
• Автобус в Джал
• Гангстеры
• Деление длинного числа на короткое
• День рождения

Feedback

If you notice incorrect translations in Contester, please let author know.

Time limit 2000/4000/4000/4000 ms. Memory limit 65000/65000/65000/65000 Kb. Difficulty Beta

Your task is to calculate the number of trailing zeros in the factorial n!.
For example, 20!=2432902008176640000 and it has 4 trailing zeros.
Input
The only input line has an integer n.
Output
Print the number of trailing zeros in n!.
Constraints
1≤n≤10^9

Example
Input:
20
Output:
4

Для отправки решений необходимо выполнить вход.

www.contester.ru