#include #define pb push_back #define mp make_pair #define mt make_tuple #define ll long long #define pii pair #define tii tuple #define N 200005 #define mod 1000000005 #define X first #define Y second #define eps 0.0000000001 #define all(x) x.begin(),x.end() #define tot(x) x+1,x+n+1 using namespace std; int lx, ly, mx, my, l, r, m, rx, ry; int main() { cin.sync_with_stdio(false); cout.sync_with_stdio(false); lx = ly = 0; rx = ry = 199; cout << lx << ' ' << ly << '\n'; cout.flush(); cin >> l; cout << rx << ' ' << ry << '\n'; cout.flush(); cin >> r; while(l < 0) { mx = (lx + rx + 1) / 2; my = (ly + ry + 1) / 2; cout << mx << ' ' << my << '\n'; cout.flush(); cin >> m; if(m < 0) { lx = mx; ly = my; } if(m == 0) return 0; if(m < 0) { rx = mx; ry = my; } } return 0; }