#include <bits/stdc++.h>
using namespace std;
#define ll long long int
#define ulli unsigned long long int
#define li long int
int main()
{
int t;
cin >> t;
while (t-- > 0)
{
long long int n;
cin >> n;
if ((n & (n - 1)) != 0)
cout << "YES" << endl;
else
cout << "NO" << endl;
}
return 0;
}