#include<bits/stdc++.h> using namespace std; const int N=2e8+10; int main (){ int T; for(cin>>T;;T--){ int n; cin>>n; while(!(n==1||n&1))n>>=1; cout<<(n==1?"Yes\n":"No\n"); } }