# coding: utf-8 import array, bisect, collections, copy, heapq, itertools, math, random, re, string, sys, time sys.setrecursionlimit(10 ** 7) INF = 10 ** 20 MOD = 10 ** 9 + 7 def II(): return int(input()) def ILI(): return list(map(int, input().split())) def IAI(LINE): return [ILI() for __ in range(LINE)] def IDI(): return {key: value for key, value in ILI()} def requestNextDis(x, y): print("{0} {1}".format(x, y)) sys.stdout.flush() dis = float(input()) return dis def main(): left_x = 0 right_x = 10 ** 5 left_dis_x = requestNextDis(0, 0) right_dis_x = requestNextDis(right_x, 0) while True: mid_x = (left_x + right_x) // 2 if left_dis_x == right_dis_x: break elif left_dis_x > right_dis_x: left_x = mid_x left_dis_x = requestNextDis(left_x, 0) elif right_dis_x > left_dis_x: right_x = mid_x left_dis_x = requestNextDis(right_x, 0) up_y = 10 ** 5 down_y = 0 up_dis_y = requestNextDis(mid_x, up_y) down_dis_y = requestNextDis(mid_x, down_y) while True: mid_y = (up_y + down_y) // 2 if up_dis_y == down_dis_y: break elif up_dis_y > down_dis_y: up_y = mid_y up_dis_y = requestNextDis(mid_x, up_y) elif down_dis_y > up_dis_y: down_y = mid_y down_dis_y = requestNextDis(mid_y, down_y) requestNextDis(mid_x, mid_y) if __name__ == "__main__": main()