MI6

No attempts yetTime limit1sMemory limit128 MB

Problem

MI6 confirms a spy's identity with a spy identification code (SIC). James Bond's SIC is 77.

A group of spies is written as a single status code, the product of the SICs of every spy in the group. No two spies share an SIC, and no spy appears twice in the same group.

So that no status code goes to waste, MI6 assigns SICs to match groups one to one with the integers of at least 22. For every integer c2c \ge 2 exactly one group has status code cc, and two different groups never carry the same status code. That single condition fixes the set of numbers used as SICs.

Given a status code, print the SICs of every spy in the group whose status code is that value.

Input

The first line contains the number of test cases, which is at most 100100.

Each test case is one line holding a status code cc (2c1092 \le c \le 10^9).

Output

For each test case, print on one line the SICs of the spies in the group whose status code is cc, in increasing order. Print a single space between consecutive SICs.