Prime

Time limit: 0.5s
Memory limit: 256MB
Input:
Output:

Besides the delicacy that is freshmen blood drank during the Halloween night, Luna also enjoys prime numbers a lot... and the number 33... so she gives you a number NN and demands the number of different ways that the number NN can be written as a sum of 33 prime numbers.

Because you won't risk getting your blood drank by Luna, you decide to answer her demands.

Input data

The only line of input contains one integer NN (1N5104 1 \leq N \leq 5\cdot 10^4)

Output data

Output a single integer - the number of ways to write NN as sum of 33 prime numbers.

Constraints and clarifications

  • For 4040 points it is guaranteed that N100N \leq 100;
  • For another 3030 points it is guaranteed that N5 000N \leq 5 \ 000;
  • For the other 3030 points, N5104N \leq 5\cdot 10^4.

Example

stdin

7

stdout

3

Explanation

The only correct way of expressing 77 as sum of 33 prime numbers is 7=2+2+37=2+2+3. Permutations of the same prime numbers won't count (such as 2+3+22+3+2)

Log in or sign up to be able to send submissions!