#abc161f. [abc161_f]Division or Subtraction
[abc161_f]Division or Subtraction
Problem Statement
Given is a positive integer .
We will choose an integer between and (inclusive), then we will repeat the operation below until becomes less than .
- Operation: if divides , replace with ; otherwise, replace with .
In how many choices of will become in the end?
Constraints
- is an integer.
Input
Input is given from Standard Input in the following format:
Output
Print the number of choices of in which becomes in the end.
Sample Input 1
6
Sample Output 1
3
There are three choices of in which becomes in the end: , , and .
In each of these choices, will change as follows:
- When :
- When :
- When :
Sample Input 2
3141
Sample Output 2
13
Sample Input 3
314159265358
Sample Output 3
9