#include <bits/stdc++.h>

using namespace std;

#define fr first
#define sc second
#define ll long long
#define ull unsigned long long
#define pb push_back
#define ppb pop_back

const int INF = 1e9 + 5;
const int mod = 1e9+7;

int main() {
    ios_base::sync_with_stdio(false);
    cin.tie(0); cout.tie(0);
    int t;
    cin>>t;
    while(t--) {
        ll n;
        cin>>n;
        while(n > 1 && n % 2 == 0) {
            n /= 2;
        }
        if(n == 1) {
            cout<<"NO\n";
        } else {
            cout<<"YES\n";
        }
    }
    return 0;
}
