You are given nodes with the following information:
Write a program to tell the number of subsets from all the possible subsets of weak nodes, which on getting their values multiplied gives a number which is divisible by all primes less than .
Since the answer can be large, print the answer Modulo .
Input format
Output format
Print the required answer Modulo .
Constraints
Node numbers and are weak nodes. If we consider all of their subsets product then only one subset {3 , 5} which has the product is divisible by all the prime numbers less than . Hence is the answer.