//In The Name Of ALLAH

#include<bits/stdc++.h>
using namespace std;

typedef long long ll;
typedef vector<int> vi;
typedef vector<long long> vl;
#define optimise() ios_base::sync_with_stdio(0);cin.tie(0);cout.tie(0);
#define endl '\n'

bool check(ll n)
{
	while(n%2 == 0)
	{
		n = n/2;
	}
	
	if(n == 1) return false;
	else return true;
}

int main()
{
	optimise();
	
	int t;
	cin >> t;
	while(t--)
	{
		ll n;
		cin >> n;
		
		bool q = check(n); 
		
		if(q) cout << "YES\n";
		else cout << "NO\n";
	}
 	
	return 0;
}

