x = list(map(int, input().split())) flag = False for i in range(4, -1, -2): a = x[2] - x[0] b = x[3] - x[1] c = x[4] - x[0] d = x[5] - x[1] if a * c + b * d == 0 and a * a + b * b == c * c + d * d: flag = True break x[0], x[i] = x[i], x[0] x[1], x[i + 1] = x[i + 1], x[1] if flag: print(x[2] + x[4] - x[0], x[3] + x[5] - x[1]) else: print(-1)