#include <bits/stdc++.h> using namespace std; int query(int a, int b) { cout << a << " " << b << endl; cout.flush(); cin >> a; return a; } int main() { #ifndef ONLINE_JUDGE //freopen("debug", "r", stdin); #endif // ONLINE_JUDGE int N = 200; int j = 0; for(int i=0; i<N; i++) { while(j < N) { int a = query(i, j); if(a == 0) return 0; if(a < 0) j++; else break; } j--; } return 0; }