#include<bits/stdc++.h> using namespace std; int main(){ int x,n; cin>>x; for(int i=1;i<=x;i++){ cin>>n; if((n&(n-1))==0) cout<<"Yes"<<endl; else cout<<"No"<<endl; } return 0; }