import sys read = sys.stdin.read readline = sys.stdin.readline readlines = sys.stdin.readlines import itertools def dot(p, q): return p[0]*q[0] + p[1]*q[1] def dist(p, q): return (p[0]-q[0])**2 + (p[1]-q[1])**2 x1, y1, x2, y2, x3, y3 = map(int, readline().split()) p = [(x1, y1), (x2, y2), (x3, y3)] for x in range(-200, 201): for y in range(-200, 201): p.append((x, y)) flag = True for a in itertools.permutations(p): flag = True for i in range(4): s, t, u = a[i], a[(i+1)%4], a[(i+2)%4] if dist(s, t) != dist(t, u): flag = False break if dot((s[0]-t[0], s[1]-t[1]), (u[0]-t[0], u[1]-t[1])) != 0: flag = False break if flag: print(x, y) quit() p.pop() print(-1)