#include <bits/stdc++.h>
using namespace std;
int main()
{
	int t;
	cin >> t;
	while (t--)
	{
		unsigned long long n;
		cin >> n;
		int f = 0;
		/*for (unsigned long long i = 3; i <= n; i =i+2)
		{
			if (n % i == 0)
			{
				f = 1;
				break;
			}
		}*/
		/*if (n == 1)	cout << "NO\n";
		else
		{*/
			if (n!=1&&n % 2 == 1)	cout << "YES\n";
			else
			{
				while (n % 2==0)
				{
					n /= 2;
				}
				//cout << n;
				if(n==1)	cout << "NO\n";
				else		cout << "YES\n";
			}
		//}
	}
	return 0;
}
	  		       		 					 	  	   		