Skip to main content

~/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):

Paying a sum with a combination of coins

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

Sign in to submit a solution

Signing up is free and takes a minute.