import sys _p = [int(i) for i in input().strip().split(" ")] p = [] for i in range(0,len(_p)-1,2): p.append([_p[i],_p[i+1]]) for i in range(len(p)): x, y = p[i][0], p[i][1] d = [] for j in range(len(p)): if i == j: continue d.append((x-p[j][0])**2 + (y-p[j][1])**2) if d[0] == d[1]: x2, y2 = p[i-1][0], p[i-1][1] if (i+1) == len(p): x3, y3 = p[0][0], p[0][1] else: x3, y3 = p[i+1][0], p[i+1][1] if (x2-x)*(x3-x) + (y2-y)*(y3-y) != 0: break v = [x2-x, y2-y] w = [x3+v[0], y3+v[1]] print("%d %d"%(w[0],w[1])) sys.exit(0) print(-1)