import itertools import numpy as np def main(): points = np.array_split(list(map(int, input().split())), 3) for a, b, c in itertools.permutations(points): if np.linalg.norm(a - b) == np.linalg.norm(c - b) and np.dot(a - b, c - b) == 0: print(*(a + c - b)) exit() print(-1) if __name__ == "__main__": main()