Problem: You are given an integer n (n > 1).

Your task is to find a sequence of integers a_1, a_2, …, a_k such that:

  * each a_i is strictly greater than 1; 
  * a_1 ⋅ a_2 ⋅ … ⋅ a_k = n (i. e. the product of this sequence is n); 
  * a_{i + 1} is divisible by a_i for each i from 1 to k-1; 
  * k is the maximum possible (i. e. the length of this sequence is the maximum possible). 



If there are several such sequences, any of them is acceptable. It can be proven that at least one valid sequence always exists for any integer n > 1.

You have to answer t independent test cases.

Input

The first line of the input contains one integer t (1 ≤ t ≤ 5000) — the number of test cases. Then t test cases follow.

The only line of the test case contains one integer n (2 ≤ n ≤ 10^{10}).

It is guaranteed that the sum of n does not exceed 10^{10} (∑ n ≤ 10^{10}).

Output

For each test case, print the answer: in the first line, print one positive integer k — the maximum possible length of a. In the second line, print k integers a_1, a_2, …, a_k — the sequence of length k satisfying the conditions from the problem statement.

If there are several answers, you can print any. It can be proven that at least one valid sequence always exists for any integer n > 1.

Example

Input


4
2
360
4999999937
4998207083


Output


1
2 
3
2 2 90 
1
4999999937 
1
4998207083 

Solution (in JAVA):

Solution:



import java.io.*;
import java.util.*;

public class Prb2 {

    static PrintWriter pw;
    static Scanner sc;
    static long mod = 1000000000+7;

    static void print(final String arg) {
      pw.write(arg);
      pw.flush();      
    } 

    static void runFile() throws Exception {

      sc = new Scanner(new FileReader("input.txt"));
      pw = new PrintWriter(new BufferedWriter(new FileWriter("output.txt")));
    }

    static void runIo() throws Exception  {

      pw =new PrintWriter(System.out);
      sc = new Scanner(System.in);
    }    

    static boolean sv[] = new boolean[1000002];

    static void seive() {
        //true -> not prime
        // false->prime

        sv[0] = sv[1] = true; 
        sv[2] = false;


        for(int i = 0; i< sv.length; i++) {

            if( !sv[i] && (long)i*(long)i < sv.length ) {


                for ( int j = i*i; j<sv.length ; j += i ) {
                    
                    sv[j] = true;

                }

            }

        }


    }

   

    public static void main(String[] args)  throws Exception {


         // runFile();

      runIo();   

         seive();
 
        int t = sc.nextInt();

        while( t-- > 0 ) {  
 
            long n  = sc.nextLong();            

            Map<Integer, Integer> map = new HashMap();
            int sqr = (int)Math.sqrt(n);

            int max = 0, maxFreq = 0;


            for(int i = 2; i<=sqr; i++) {

                if( !sv[i] && n % i == 0) {

                    long N = n;
                    int count = 0;

                    while (N > 0) {
                        if( N%i != 0)
                            break;
                        count++;
                        N = N/i;
                    }

                    if( maxFreq < count ) {
                        max = i;
                        maxFreq = count;
                    }

                    map.put(i, count);

                }

            }

            // for(int k : map.keySet()){
            //     print(k+"-"+map.get(k)+"\n");
            // }


            if( map.size() == 1) {
                for(int k : map.keySet()) {
                    if( map.get(k) == 1 ) {
                        print("1\n"+ n);
                    }
                    else {
                        print(map.get(k)+"\n");
                        long temp = 1;
                        for(int i = 0; i<map.get(k)-1;i++){
                            temp *= k;
                            print(k+" ");
                        }
                        print(n/temp+"");
                    }
                }
            }
            else if( map.isEmpty()){
                print("1\n"+n);
            }
            else {
                    print(maxFreq+"\n");
                    long temp = 1;
                    for(int i = 0; i<maxFreq-1; i++){
                        print(max+" ");
                        temp = temp *max;
                    }
                    print(n/temp+" ");


            }




            print("\n");
            
        }

           
    }

                                          
}