#include <bits/stdc++.h>
using namespace std;
using ll=long long;
int main(){
   ll t;cin>>t;
    while(t>0){
        t--;
        ll n;cin>>n;
        bool ans=true;ll k=1;
        for(ll i=1;i<=50;i++){
         k=k*2;
          if(n==k) ans=false;

        }
        if(ans) cout<<"YES"<<endl;
        else cout<<"NO"<<endl;
    }}