import numpy as np X1, Y1, X2, Y2, X3, Y3 = map(int, input().split()) a = np.array([X1, Y1]) b = np.array([X2, Y2]) c = np.array([X3, Y3]) ab = np.linalg.norm(a - b) bc = np.linalg.norm(b - c) ca = np.linalg.norm(c - a) ans = (-1, ) if ab == ca: if np.inner(b - a, c - a) == 0: ans = b + c - a elif ab == bc: if np.inner(a - b, c - b) == 0: ans = a + c - b elif bc == ca: if np.inner(c - a, c - b) == 0: ans = a + b - c print(*ans)