include<bits/stdc++.h>
using namespace std;
int main(){ ios_base::sync_with_stdio(false); cin.tie(NULL); long long int t,n; cin>>t; while(t>0){ cin>>n; if(n%2!=0){ cout<<"YES"; } else if((log(n)/log(2))==(int)(log(n)/log(2))){ cout<<"NO"; } else{ cout<<"YES"; }
cout<<endl; t--; }
}