~/algor $ cat problems/sonlar-faktorial-nollari
Trailing zeros of a factorial
Easy
1000 ms
128 MB
24%
You are given a positive integer $n$. Find how many zeros the decimal notation of $n! = 1 \cdot 2 \cdot \ldots \cdot n$ ends with. For example, $10! = 3628800$ ends with two zeros.
Input
One positive integer $n$.
Output
One integer — the number of trailing zeros of $n!$.
Note
$1 \le n \le 10^{18}$
Examples
Input #1
25
Output #1
6
Input #2
4
Output #2
0