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 CPP):

Solution:
#include<cstdio>
#include<algorithm>
#include<iostream>
#include<cstring>
#include<cmath>
#include<queue>
#include<map>
#include<stack>
//#include<bits/stdc++.h>

#define ll long long
#define ull unsigned long long
#define INL inline
//Tosaka Rin Suki~
using namespace std;

INL void read(ll &x)
{
	 x=0;ll w=1;
	 char ch=getchar();
	 while((ch<'0'||ch>'9')&&ch!='-')ch=getchar();
	 if(ch=='-')w=-1,ch=getchar();
	 while(ch>='0'&&ch<='9')
	 {x=(x<<1)+(x<<3)+ch-48,ch=getchar();}
	 x*=w;
}

INL int mx(int a,int b){return a>b?a:b;}
INL int mn(int a,int b){return a<b?a:b;}

struct Rey
{
	ll pri,c;
}a[100005];
ll tot[100005];
int cnt=0;

void dvd(ll n)
{
    for(int i=2;i<=sqrt(n);i++)
    {
        if(n%i==0)a[++cnt].pri=i,a[cnt].c=0;
        while(!(n%i))n/=i,a[cnt].c++;
    }
    if(n>1)a[++cnt].pri=n,a[cnt].c=1;
}

bool cmp(Rey p,Rey q)
{
	return p.c>q.c;
}

int main()
{
	//freopen(".in","r",stdin);
	//freopen(".out","w",stdout);
	ll t;
	read(t);
	while(t--)
	{
		ll n;
		memset(a,0,sizeof(a));
		read(n);
		cnt=0;
		dvd(n);
		sort(a+1,a+cnt+1,cmp);
		ll now=a[1].pri;
		printf("%lld\n",a[1].c);
		while(a[1].c)
		{
			now=a[1].pri;
			for(int i=2;i<=cnt;i++)
			{
				if(a[i].c==a[1].c)a[i].c--,now*=a[i].pri;
			}
			a[1].c--;
			printf("%lld ",now);
		}putchar('\n');
	}
	return 0;
}