#define _GLIBCXX_DEBUG #include using namespace std; #define rep(i, n) for (int i = 0; i < (ll)(n); i++) #define all(a) (a).begin(), (a).end() using ll = long long; const int INF32 = 2e9; const ll INF64 = 4e18; int main() { int x = 536870912; for (int i = 0; i < 30; i++) { cout << x << endl; cout << flush; int in; cin >> in; if (in == -1)return 0; if (in == 1)return 0; if (in == 0)x = x/2; } return 0; }