Six
Elly studies the properties of some given integer . So far she has discovered that it has no more than six distinct prime divisors. A prime number (or a prime) is a natural number greater than that has no positive divisors other than and itself.
Now the girl spends her time in the following way. Starting with an empty list, she writes divisors of , greater than (some divisors she may repeat several times). When adding a new number to the list, she makes sure that it has common divisors greater than with at most one of the already written numbers.
For example, if the number is , some of the many possible valid sequences the girl can generate are , , , , , и . Examples for invalid sequences would be , since is not a divisor of , or , since has common divisors with both and .
Now Elly is wondering how many different valid sequences of divisors of exist. We consider two sequences different if they have different length or there is a position, in which they have different numbers.
Write a program that helps Elly to find the number of valid sequences of divisors of .
Input
The first line contains one integer . will have at most distinct prime divisors.
Output
Print one integer — the number of different sequences of divisors of , which could have been written by Elly. Since this number can be rather large, you are required to print only its remainder when divided by .
Examples
Explanation for the first test. All valid sequences are: , , , , , , , , , , , , , , , , , , , , , , , , , , , .
Explanation for the fourth test. The answer is , but since you are required to print it modulo , the actual result is .