def func(x,y,x1,y1,x2,y2): v1x = x1-x v1y = y1-y v2x = x2-x v2y = y2-y if v1x**2 + v1y**2 == v2x**2 + v2y**2 and v1x * v2x + v1y * v2y == 0: return (x+v1x+v2x, y+v1y+v2y) else: return -1 x1,y1,x2,y2,x3,y3 = map(int, raw_input().split()) t = func(x1,y1,x2,y2,x3,y3) u = func(x2,y2,x1,y1,x3,y3) v = func(x3,y3,x1,y1,x2,y2) if t != -1: print t[0],t[1] elif u != -1: print u[0],u[1] elif v != -1: print v[0],v[1] else: print -1