x1, y1, x2, y2 = map(int, input().split()) if x1 < x2: print(x1, y2, x2, y1) else: print(x2, y1, x1, y2)