#include using namespace std; int main() { int x = (1 << 29), r = 0; while (r == 0) { cout << x << endl; cin >> r; x /= 2; } }