x1,y1,x2,y2,x3,y3 = map(int,input().split()) length = [] length.append((x1-x2)**2+(y1-y2)**2) length.append((x3-x2)**2+(y3-y2)**2) length.append((x3-x1)**2+(y3-y1)**2) minl = min(length) maxl = max(length) if length.count(minl) == 2 and maxl/minl == 2: ind = length.index(maxl) if ind == 0: x = x1+x2-x3 y = y1+y2-y3 elif ind == 1: x = x3+x2-x1 y = y3+y2-y1 elif ind == 2: x = x1+x3-x2 y = y1+y3-y2 print(x,y) else: print(-1)