3233. N!

单点时限: 2.0 sec

内存限制: 256 MB

Give you an integer n, find the maximum k that satisfies
n!mod10k=0

输入格式

There are several test cases, please process till EOF.

For each test case, there is only one line contains integer n (1n109).

输出格式

For each test case, output the answer in one line.

样例

Input
2
5
Output
0
1

358 人解决,418 人已尝试。

403 份提交通过,共有 1309 份提交。

2.1 EMB 奖励。

创建: 7 年,11 月前.

修改: 7 年,8 月前.

最后提交: 1 周,1 天前.

来源: 2017 华东理工上海高校邀请赛

题目标签