Micro has discovered new type of numbers, he is calling them Optimus Primes. He defined a function,f(x)=sum of powers of prime factors in x′s prime factorization A number x is Optimus Prime if f(x) is exactly 1 less than its total number of divisors. Now, Micro is interested in finding out the smallest Optimus Prime having f(x)=N. Help Micro with this task.
Input:
First line consists of a single integer T denoting the number of test cases.
Each of the following T lines consists of a single integer denoting N.
Output:
Print the required answer for each test case in a new line. Since answer can be large print it modulo 109+7.
Constraints:
1≤T≤105
1≤N≤1018