//GIVE ME AC!!!!!!!!!!!!!!!!! //#pragma GCC target("avx") //#pragma GCC optimize("O3") //#pragma GCC optimize("unroll-loops") #include #define ll long long #define ld long double #define floatset() fixed<; using vi=vector; using vs=vector; using vc=vector; using vvl=vector; using P=pair; using vvc=vector; using vd=vector; using vp=vector

; using vb=vector; const int dx[8]={1,0,-1,0,1,-1,-1,1}; const int dy[8]={0,1,0,-1,1,1,-1,-1}; const ll inf=2e18; const ll MOD=1000000007; const ll mod=998244353; const double pi=acos(-1); template ostream &operator<<(ostream&os,const pair&p) { os< istream &operator>>(istream&is,pair&p) { is>>p.first>>p.second; return is; } template ostream &operator<<(ostream&os,const vector&v) { for(int i=0;i<(int)v.size();i++) { os< istream &operator>>(istream&is,vector&v) { for(T &in:v)is>>in; return is; } void scan(){} template void scan(Head&head,Tail&... tail) { cin>>head; scan(tail...); } template void print(const T &t) { cout << t << '\n'; } template void print(const Head &head, const Tail &... tail) { cout << head << ' '; print(tail...); } template void fin(const T &... a) { print(a...); exit(0); } template ll sum_(vector&v){ ll res=0; for(auto &e:v)res+=e; return res; } template inline bool chmax(T1&a,T2 b){return a inline bool chmin(T1&a,T2 b){return a>b&&(a=b,true);} void solve(); int main(){ ll times=1; cin>>times; while(times--){ solve(); } } vl v={2,3,5,7,11,13,17,19,23,29,31}; void solve(){ LL(x); ll X=x; vl cnt(11,0); rep(i,0,11){ while(x%v[i]==0)cnt[i]++,x/=v[i]; } rep(i,2,31){ vl cnt1(11,0); ll a=i; rep(j,0,11){ while(a%v[j]==0)cnt1[j]++,a/=v[j]; } ll res1=1,res2=1; rep(j,0,11){ res1*=cnt[j]+1; res2*=cnt[j]+cnt1[j]+1; } if(res1*2==res2){ cout<