Prime Factorization

EasyProblem #23
Time LimitMemoryInputOutput
1 s64 MBstdinstdout

The numbers do not fit in an int.

If a few prime numbers are given, their product is easy to compute. The reverse direction is much harder: given the product, find the primes that make it up. Your task is to print the prime factorization of each given number.

Input

First line of input will be a single integer - the number of testcases.
Each of the next lines contains a single integer .

Output

For every testcase print a single line with the prime factors of in increasing order, separated by single spaces. Every prime appears as many times as it divides .

Example

Input
2
900
97
Output
2 2 3 3 5 5
97

, and is prime, so it is its own entire factorization.

Constraints



This problem was adapted, with permission, from Rastavljanje na proste činioce, authored by Društvo matematičara Srbije and Fondacija Petlja.

Submit your solution