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

const int N = 2e5+5;

void Test_Case () {
    long long n; cin >> n;
    if (__builtin_popcountll (n)!= 1) puts ("YES");
    else puts ("NO");
}
int main () {
    int TC = 1; cin >> TC;
    while (TC--) Test_Case ();
    return 0;
}
    