Leonhard Euler (1707-1783) was a great mathematician. This problem uses one of the functions named after him, the Euler φ function.
For a natural number n, the value of φ at n is the count of numbers k (1≤k≤n) that are coprime to n. Two numbers are coprime when they have no common divisor greater than 1. For example φ(6)=2, because 1 and 5 are coprime to 6 while 2, 3, 4 and 6 are not.
Had Euler lived on, he might have posed this: for a given natural number n, find every natural number x that satisfies φ(x)=n.
The first line contains one natural number t (1≤t≤5), the number of data sets. Each of the next t lines describes one data set and holds a single natural number n (1≤n≤1010).
Print the answers for the data sets in the order they appear in the input. The answer for one data set takes two lines. The first line holds the number of solutions. The second line holds every solution of the equation in increasing order. When the equation has no solution, leave the second line of that data set's answer empty.