#include using namespace std; using Int = int64_t; using uInt = uint64_t; template using min_heap = priority_queue, greater>; template using max_heap = priority_queue, less>; void solve( /* Copyright by Urtusea */ ) { Int n; cin >> n; if (n == 6 || n == 28 || n == 496 || n == 8128 || n == 33550336 || n == 8589869056 || n == 137438691328) { cout << "Yes\n"; } else { cout << "No\n"; } } int main(int argc, char *argv[], char *envp[]) { cin.tie(nullptr)->sync_with_stdio(false); // for (int i = 1, n = (cin >> n, n); i <= n; i++) solve(); return 0; }