import sys print 0,0 sys.stdout.flush() d1 = int(raw_input()) if d1 == 0: sys.exit() print 1000000000,0 sys.stdout.flush() d2 = int(raw_input()) if d2 == 0: sys.exit() for x in range(min(1000000001,d1+1)): y = d1 - x d = abs(1000000000 - x) + y if d == d2: print x,y sys.stdout.flush() d3 = int(raw_input()) break