atcoder#ABC161F. [ABC161F] Division or Subtraction
[ABC161F] Division or Subtraction
Score : points
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.
6
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 :
3141
13
314159265358
9