Trailing Zeros

View as PDF

Submit solution

Points: 1.00
Time limit: 1.0s
Memory limit: 512M
Input: stdin
Output: stdout

Author:
Problem types

Attempt

Please login to see your submissions result.


Last updated: on Dec. 16, 2024, 9:34 a.m.

Problem

Given an integer ~N~. Please find the number of trailing zeros in the factorial ~N!~.

For example ~20! = 2,432,902,008,176,640,000~ and it have ~4~ trailing zeros.

Input

Single line contain an integer ~N~.

Output

Print a single positive integer is the trailing zeros of ~N!~.

Constraints

~1 \leq N \leq 10^9~.

Sample

Sample Input Sample Output
20
4

Comments

Please read the guidelines before commenting.


There are no comments at the moment.