#include using namespace std; using ll = long long; int main(){ ios::sync_with_stdio(false); cin.tie(0); int T; cin >> T; while(T--){ int n; cin >> n; if(__builtin_popcount(n) == 1){ cout << (n < 32 ? "Yes" : "No") << '\n'; }else{ cout << "No\n"; } } }