100 atcoder#ABC148E. [ABC148E] Double Factorial

[ABC148E] Double Factorial

Score : 500500 points

Problem Statement

For an integer nn not less than 00, let us define f(n)f(n) as follows:

  • f(n)=1f(n) = 1 (if n<2n < 2)
  • f(n)=nf(n2)f(n) = n f(n-2) (if n2n \geq 2)

Given is an integer NN. Find the number of trailing zeros in the decimal notation of f(N)f(N).

Constraints

  • 0N10180 \leq N \leq 10^{18}

Input

Input is given from Standard Input in the following format:

NN

Output

Print the number of trailing zeros in the decimal notation of f(N)f(N).

12
1

$f(12) = 12 \times 10 \times 8 \times 6 \times 4 \times 2 = 46080$, which has one trailing zero.

5
0

f(5)=5×3×1=15f(5) = 5 \times 3 \times 1 = 15, which has no trailing zeros.

1000000000000000000
124999999999999995