#include <bits/stdc++.h>

using namespace std;

typedef long long ll;
typedef vector<int> vi;
typedef vector<ll> vll;
typedef pair<int, int> pii;
typedef pair<ll,ll> p2ll;

int main(){
    ios_base::sync_with_stdio(false);
    cin.tie(NULL);

    ll t;
    cin >> t;
    while (t > 0){
        long long n; cin >> n;
        string o = pow(2,(long double)log2(n)) == n ? "NO":"YES";
        cout << o << "\n";
        --t;
    }
    return 0;
}
