X = [0] * 3 Y = [0] * 3 X[0], Y[0], X[1], Y[1], X[2], Y[2] = map(int, input().split()) kyori = [] for i in range(2): for j in range(i + 1, 3): kyori.append(round((abs(X[i] - X[j]) ** 2 + abs(Y[i] - Y[j]) ** 2) ** 0.5, 3)) if len(set(kyori)) > 2: exit(print(-1)) kyori1, kyori2 = max(kyori), min(kyori) for x in range(-100, 101, 1): for y in range(-100, 101, 1): l = [] for i in range(3): l.append(round((abs(X[i] - x) ** 2 + abs(Y[i] - y) ** 2) ** 0.5, 3)) if len(set(l)) == 2: l1, l2 = max(l), min(l) if kyori1 == l1 and kyori2 == l2: print(x, y) exit() print(-1)