#include<bits/stdc++.h>
using namespace std;
#define pop __builtin_popcountll
long long t;
long long lowbit(long long x) {
return x & -x;
}
int main() {
scanf("%lld", &t);
while (t--) {
long long n;
scanf("%lld", &n);
if (pop(n) >= 3)
printf("No,Commander");
else
if (pop(n) == 1)
printf("%lld\n", n + 1);
else
printf("%lld\n", n + lowbit(n));
}
}