import itertools a, b, c, d, e, f = map(int,input().split()) x = [a, c, e] y = [b, d, f] l = list(itertools.permutations([0, 1, 2])) for i, j, k in l: if x[k] == x[j] + y[i] - y[j] and y[k] == y[j] + x[j] -x[i]: X = x[k] + x[i] - x[j] Y = y[k] + y[i] - y[j] print(X, Y) break else: print(-1)