问题 C: idol!!

内存限制:256 MB 时间限制:1 S 标准输入输出
题目类型:传统 评测方式:文本比较 上传者:
提交:6 通过:4

题目描述

Akuya has finally obtained Shinki Hikari's iPhone. Now, he needs to crack the password to gather evidence!

Blindly attempting to crack the password won't work, so Akuya found a note inside Shinki Hikari's phone case. On it was a puzzle! He believes the solution to this puzzle is the phone's password. The puzzle is as follows:

Given a positive integer nnn, the double factorial of nnn is the product of all positive integers with the same odd/even parity as nnn and not exceeding nnn. It is denoted as n!!n!!n!!, for example, 5!!=1×3×5,6!!=2×4×65!! = 1 \times 3 \times 5, 6!! = 2 \times 4 \times 65!!=1×3×5,6!!=2×4×6.

Find the number of trailing zeros in the decimal representation of the product 1!!×2!!×3!!×⋯×n!!1!! \times 2!! \times 3!! \times \dots \times n!!1!!×2!!×3!!××n!!.

Akuya is just one step away from achieving his revenge. Can you help him?

输入格式

Input one line containing a positive integer n(1≤n≤1018)n (1 \leq n \leq 10^{18})n(1n1018).

输出格式

Only one line, containing a integer, represents the answer.

输入样例 复制

11

输出样例 复制

5

数据范围与提示

1!!×2!!×3!!××11!! = 525631984238592000005256319842385920000052563198423859200000