#include <iostream>
#include <bits/stdc++.h>
#include <string>
#include <cmath>
#include <set>
#include <map>
#include <list>
#include <deque>
#include <vector>
#include <algorithm>
#include <iterator>
using namespace std;

bool ispower2(unsigned long long int n)
{
   if(n==0)
   return false;
   return (ceil(log2(n)) == floor(log2(n)));
}
int main() 
{
    ios_base::sync_with_stdio(0);
    cin.tie(NULL); 
    cout.tie(NULL);
    unsigned long long int t,n;
    cin>>t;
    while(t--)
    {
        cin>>n;
        if(n%2 !=0)
            cout<<"YES\n";
        else if(ispower2(n))
            cout<<"NO\n";
        else
            cout<<"YES\n";
    }
    return 0;
}