import math def solve(): x1, y1, x2, y2, x3, y3 = list(map(int, input().split())) v12 = (x1 - x2, y1 - y2) v13 = (x1 - x3, y1 - y3) v23 = (x2 - x3, y2 - y3) d12 = v12[0]**2 + v12[1]**2 d13 = v13[0]**2 + v13[1]**2 d23 = v23[0]**2 + v23[1]**2 if d12 == d13 and d23 == d12 + d13: print(x3 - v12[0], y3 - v12[1]) elif d12 == d23 and d13 == d12 + d23: print(x3 + v12[0], y3 + v12[1]) elif d13 == d23 and d12 == d13 + d23: print(x2 + v13[0], y2 + v13[1]) else: print(-1) if __name__ == '__main__': solve()