#include <iostream> using namespace std; int main() { int t; cin >> t; while (t--) { int n; cin >> n; bool flag = true; while (n > 0) { if (n % 2 == 0) n /= 2; else { flag = flase; break; } } if (flag) cout << "Yes" << endl; else cout << "No" << endl; } return 0; }