yl = 0 yr = 10**5 print(0, yl, flush=True) dl = int(input()) if dl == 0: exit() print(0, yr, flush=True) dr = int(input()) if dr == 0: exit() while yl+2 < yr: y1 = (2*yl+yr)//3 y2 = (yl+2*yr)//3 print(0, y1, flush=True) d1 = int(input()) if d1 == 0: exit() print(0, y2, flush=True) d2 = int(input()) if d2 == 0: exit() if d1 <= d2: yr = y2 else: yl = y1 y = (yl+yr)//2 xl =0 xr = 10**5 print(xl, y, flush=True) dl = int(input()) if dl == 0: exit() print(0, yr, flush=True) dr = int(input()) if dr == 0: exit() while xl+2 < xr: x1 = (2*xl+xr)//3 x2 = (xl+2*xr)//3 print(x1, y, flush=True) d1 = int(input()) if d1 == 0: exit() print(x2, y, flush=True) d2 = int(input()) if d2 == 0: exit() if d1 <= d2: xr = x2 else: xl = x1 x = (xl+xr) print(x, y, flush=True)