// mc2a.cpp : Defines the entry point for the console application. // #include using namespace std; long long i, n, a, j; int main() { cin >> n; for (i = 1; i <= n; i++) { cin >> a; long long maxi = -1; for (j = 0; j <= 31; j++) { if (a <= (1 << (j+1))) { break; } if ((a & (1<