#include<iostream>
#define ll long long 
using namespace std;

int main(){
    int t;
    cin>>t;
    while(t--){
        ll n;
        cin>>n;
        bool flag=0;
        if(n%2!=0){
            cout<<"YES"<<"\n";
            flag=1;
        }
        else{
            while(n%2==0){
                n/=2;
            }
            if(n>1) 
            cout<<"YES"<<"\n";
            else cout<<"NO"<<"\n";
        }
    }
    return 0;
}