Research Grant Allocation#1282

Research Grant Allocation

1 second
64 megabytes
Very easy

The National Science Foundation has implemented a new policy for distributing research grants. Based on extensive studies showing that teams with a prime number of members achieve optimal results, the foundation has decided that all individual project grants must be awarded in amounts that are prime numbers, measured in units of .

Dr. Sarah Chen, the foundation's Chief Grant Allocation Officer, faces an interesting challenge. For the current funding cycle, she has a budget of units () to distribute among various research projects. She needs to determine: In how many distinct ways can this budget be partitioned into grants of prime sizes?

For example, with units, the possible allocations are:

This gives distinct allocation schemes. Note that rearranging the same set of grants in a different order does not create a new scheme.

Dr. Chen knows from practical experience that the foundation's maximum budget per cycle is units (), which keeps the problem manageable.

Can you help determine the number of distinct allocation schemes for any given budget?

Input

The input consists of several test cases (t \leq 20). Each test case is on a separate line and contains a single integer representing the total budget in units. The budget is always at least units.

Output

For each test case, output on a separate line the number of distinct ways to partition the budget into grants of prime sizes.

Examples

Example 1

Loading
Loading