#include using namespace std; int main() { ios_base::sync_with_stdio(false); cin.tie(nullptr); int T; cin >> T; while(T--){ int N; cin >> N; if(N == 1 || N == 2 || N == 4 || N == 8 || N == 16) cout << "Yes\n"; else cout << "No\n"; } }