In a country of n cities, numbered from 1 to n. The traveler is at the beginning of a town and wants to visit all the cities. We know that he acts according to the following algorithm: first, randomly chosen integer m in the interval [1, n–1]. After that the city visited in the order of 1, 1 + m mod n, 1 + (2·m) mod n, ... and so on, until it gets to an already visited the city. Note that this process will always be finite, since the number of cities of course. Find the probability that the traveler will visit all the cities of the country.
The first line of the input file contains the number of test cases, t (1 ≤ t ≤ 10000). Each test consists of one line containing the number n (2 ≤ n ≤ 2·10^9 ).
For each test case output the answer to the problem as an irreducible fraction.