p = [ float(v) for v in input().split() ] p1, p2, p3 = p[:2], p [2:4], p[4:] anslist = [] def length(start,end): l = ((end[0]-start[0])**2 + (end[1]-start[1])**2) return l def vector_product(point1,point2,point3): s = abs( (point2[0] - point1[0]) * (point3[1] - point1[1]) - (point3[0] - point1[0]) * (point2[1] - point1[1]) ) return s**2 def length_product(point1,point2,point3): s = length(point2,point1)*length(point3,point1) return s def compare_two_product(point1,point2,point3): vp = (vector_product(point1,point2,point3)) lp = (length_product(point1,point2,point3)) if vp == lp and length(point2,point1) == length(point3,point1): x = int(point2[0]+point3[0]-point1[0]) y = int(point2[1]+point3[1]-point1[1]) anslist.append(x) anslist.append(y) return compare_two_product(p1, p2, p3) compare_two_product(p3, p1, p2) compare_two_product(p2, p3, p1) if anslist != []: print(anslist[0],anslist[1]) else: print(-1)