import java.io.*; import java.util.*; class Main { public static void main(String args[])throws Exception { BufferedReader bu=new BufferedReader(new InputStreamReader(System.in)); StringBuilder sb=new StringBuilder(); int N=500000,pr[]=new int[N+1],i,j; ArrayList p=new ArrayList<>(); for(i=2;i<=N;i++) if(pr[i]==0) { p.add(i); for(j=i;j<=N;j+=i) pr[j]=i; } int t=Integer.parseInt(bu.readLine()); while(t-->0) { long n=Long.parseLong(bu.readLine()); long sm=-1; int fac=1,c; HashMap hm=new HashMap<>(); for(int x:p) if(n%x!=0) {sm=x; break;} else { long y=n; c=0; while(y%x==0) {y/=x; c++;} fac*=c+1; hm.put(x,c); } i=2; while(i