a, b, c, d, e, f = map(int,input().split()) p1 = [a, b] p2 = [c, d] p3 = [e, f] def f(x, y): z = ((y[0]-x[0])**2 + (y[1]-x[1])**2) ** 0.5 return z l = [] l.append([f(p1, p2), p1, p2]) l.append([f(p2, p3), p2, p3]) l.append([f(p1, p3), p1, p3]) l =sorted(l) l1 = [f(p1, p2), f(p2, p3), f(p1, p3)] l2 = sorted(set(l1)) if len(l2) == 2 and str((l2[0]**2 + l2[0]**2) ** 0.5)[:8] == str(l2[1])[:8]: g = [(l[-1][1][0]+l[-1][2][0])/2, (l[-1][1][1]+l[-1][2][1])/2] L = [p1, p2, p3] L.remove(l[-1][1]) L.remove(l[-1][2]) print(int(2*g[0] - L[0][0]), int(2*g[1] - L[0][1])) else: print(-1)