~/algor $ cat contests/round-9/H
H. Paying with coins
Problem H
ICPC rules
1000 ms
64 MB
A positive integer is given. Determine in how many ways exactly soums can be paid with coins of , and soums (the order of the coins does not matter):
Input
One positive integer .
Output
One integer — the number of ways.
Note
Examples
Input #1
7
Output #1
6
Input #2
10
Output #2
10