#include "bits/stdc++.h"
#define endl "\n"
#define rapid ios_base:: sync_with_stdio(false);cin.tie(NULL);cout.tie(NULL);
#define ll long long
using namespace std;


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