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

void solve(){
    int n;
    cin >> n;
    if(n==1)cout << "NO" << '\n';
    else if(n%2)cout << "YES" << '\n';
    else {
        while(n%2==0)n=n/2;
        if(n==1)cout << "NO" << '\n';
        else cout << "YES" << '\n';
    }
    
}

int32_t main(){
    int tt;
    tt=1;
    cin >> tt;
    while(tt--){
        solve();
    }

}


