numsX, numsY = [], [] while True: try: x, y = map(int, input().split()) if x == 0 and y == 0: print(min(numsX), min(numsY), max(numsX), max(numsY)) numsX.clear() numsY.clear() continue numsX.append(x) numsY.append(y) except: break
numsX, numsY = [], [] while True: try: x, y = map(int, input().split()) if x == 0 and y == 0: print(min(numsX), min(numsY), max(numsX), max(numsY)) numsX.clear() numsY.clear() continue numsX.append(x) numsY.append(y) except: break