#include<bits/stdc++.h> using namespace std; int main(){ int n,t; cin>>t; while(t--){ cin>>n; cout<<(((n-1)&n)==0?"Yes\n":"No\n"); } return 0; }