#jag2018summerday2b. [jag2018summer_day2_b]Coins
[jag2018summer_day2_b]Coins
Problem Statement
There are -, -, -, -, -, - yen coins, and you have an infinite number of coins of each type.
For a given positive integer , let be the smallest number of coins you have to use to pay exactly yen. For example, because .
You are given a positive integer . Count the number of positive integers such that .
Constraints
Input
Input is given from Standard Input in the following format:
Output
Print the number of positive integers such that .
Sample Input 1
1
Sample Output 1
6
The value of is or .
Sample Input 2
2
Sample Output 2
19
The value of is $2, 6, 11, 15, 20, 51, 55, 60, 101, 105, 110, 150, 200, 501, 505, 510, 550, 600,$ or .
Sample Input 3
1000000000000000000
Sample Output 3
500