#include using namespace std; #define endl '\n' #define lfs cout<= (ll)(n); i--) using ll = long long; using ld = long double; const ll MOD = 1e9+7; //const ll MOD = 998244353; const ll INF = 1e18; using P = pair; template void chmin(T &a,T b){if(a>b)a=b;} template void chmax(T &a,T b){if(a void ans(bool x,T1 y,T2 z){if(x)cout< void debug(vector>&v,ll h,ll w){for(ll i=0;i&v,ll h,ll w){for(ll i=0;i void debug(vector&v,ll n){if(n!=0)cout< vector>vec(ll x, ll y, T w){ vector>v(x,vector(y,w));return v;} ll gcd(ll x,ll y){ll r;while(y!=0&&(r=x%y)!=0){x=y;y=r;}return y==0?x:y;} vectordx={1,0,-1,0,1,1,-1,-1}; vectordy={0,1,0,-1,1,-1,1,-1}; template vector make_v(size_t a,T b){return vector(a,b);} template auto make_v(size_t a,Ts... ts){ return vector(a,make_v(ts...)); } ostream &operator<<(ostream &os, pair&p){ return os << p.first << " " << p.second; } using ull = unsigned long long; template struct FastPrime{ T modpow(T p, ull q, ull mod){ T tmp = p % mod, ret = 1; while(q){ if(q&1)ret = ret * tmp % mod; q >>= 1; tmp = tmp * tmp % mod; } return ret; } vectorv32={2,7,61}; bool isPrime32(ull n){ ull d = n - 1; while(!(d&1))d >>= 1; for(auto a:v32){ if(n <= a)break; T now = modpow(a, d, n); ull q = d; while(q != n - 1 && now != T(1) && now != T(n - 1)){ q <<= 1; now = now * now % n; } if(!(q&1) && now != T(n-1))return false; } return true; } vectorv64={2,325,9375,28178,450775,9780504,1795265022}; bool isPrime64(ull n){ ull d = n - 1; while(!(d&1))d >>= 1; for(auto a:v64){ if(n <= a)break; T now = modpow(a, d, n); ull q = d; while(q != n - 1 && now != T(1) && now != T(n - 1)){ q <<= 1; now = now * now % n; } if(!(q&1) && now != T(n-1))return false; } return true; } bool isPrime(ull n){ if(n == 2)return true; else if(n == 1 || n % 2 == 0)return false; else if(n <= 1UL << 31)return isPrime32(n); else return isPrime64(n); } }; int main(){ cin.tie(nullptr); ios_base::sync_with_stdio(false); ll res=0,buf=0; bool judge = true; struct FastPrime<__uint128_t> fp; ll n;cin>>n; rep(i,0,n){ ll x;cin>>x; cout<