#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, l1, l2, x, y; int main() { cin.sync_with_stdio(false); cout.sync_with_stdio(false); l1 = 0; l2 = 199; cout << l1 << ' ' << 0 << '\n'; cout.flush(); cin >> l; cout << l2 << ' ' << 0 << '\n'; cout.flush(); cin >> r; while(l2 - l1 > 1) { m = (l1 + l2) / 2; cout << l1 << ' ' << 0 << '\n'; cout.flush(); cin >> x; if(x < 0) l1 = m; if(x == 0) return 0; if(x > 0) l2 = m; } y = l; l = 0; r = 199; while(r - l > 1) { m = (l + r) / 2; cout << y << ' ' << m << '\n'; cout.flush(); cin >> x; if(x < 0) l = m; if(x == 0) return 0; if(x > 0) r = m; } return 0; }