Once a financier pondered the following question: Is it possible, for a reporting period, to have negative totals for every interval of months of the same length, but to obtain a positive total for the entire reporting period?
Our task is to help him. Write a program that, for a given positive integer , determines the total number of integers such that it is possible to create a sequence of length where the sum of its members is positive, but every segment of length has a negative sum.
The only line of input contains an integer (1 \leq N \leq 2 \cdot 10^{10}).
Print a single number — the answer to the problem.
Example 1