#include<bits/stdc++.h>
using namespace std;

#define lli long long int
#define lld long double
#define ff first
#define ss second
#define gcd(a, b) __gcd(a, b)
#define lcm(a, b) (a*b)/__gcd(a, b)
#define MAX 100000
#define mod 1000000007
#define fast ios_base::sync_with_stdio(false); cin.tie(NULL);

void solve()
{
   lli n;
   cin>>n;
   if(ceil(log2l(n))==floor(log2l(n))) cout<<"NO"<<endl;
   else cout<<"YES"<<endl;
}

int main()
{
    fast;
    lli t=1;
    cin>>t;
    while(t--)
    {
        solve();
    }
}
