#P1025. 末尾零 (Trailing Zeros)
末尾零 (Trailing Zeros)
Source: CSES Problem Set (Task 1618)
Link: https://cses.fi/problemset/task/1618
Category: Introductory Problems
- Time limit: 1.00 s
- Memory limit: 512 MB
Your task is to calculate the number of trailing zeros in the factorial .
For example, and it has trailing zeros.
Input
The only input line has an integer .
Output
Print the number of trailing zeros in .
Constraints
Example
Input:
20
Output:
4