#include<bits/stdc++.h>
using namespace std;
#define suni ios_base::sync_with_stdio(0);cin.tie(0);cout.tie(0)
#define endl "\n"
int main()
{
  suni;
  int t;cin>>t;
  while(t--){
            long long n;
             cin>>n;
           while((n&1)==0) n/=2;
          if(n>1) cout<<"YES"<<endl;
          else cout<<"NO"<<endl;
}
}
