#include <bits/stdc++.h>
using namespace std;
typedef long long int ll;
bool isPowerOfTwo(ll n)
{
    if(n==0){
        return false;        
    }
    return (ceil(log2(n)) == floor(log2(n)));
}

int main()
{
    ios_base::sync_with_stdio(false);
	cin.tie(NULL);
	cout.tie(NULL);
	int t;
	cin>>t;
	while(t--){
        ll n;
        cin>>n;
        if(!isPowerOfTwo(n))
            cout<<"YES"<<"\n";
        else
            cout<<"NO"<<"\n";
	}
	return 0;

    
}
