x = 100000 zahyo = [[0,0],[x,x],[x,0]] kyori = [] for i in range(3): print(zahyo[i][0],zahyo[i][1]) kyori.append(int(input())) if kyori[i]==0: exit(0) kouho = [[kyori[0],x-kyori[1]],[x-kyori[1],kyori[0]]] if kyori[2]==max(x-kouho[0][0],kouho[0][1]): print(*kouho[0]) else: print(*kouho[1])