import math X1, Y1, X2, Y2, X3, Y3 = map(int, raw_input().split()) X = [0] * 4 Y = [0] * 4 X[0] = X1 X[1] = X2 X[2] = X3 Y[0] = Y1 Y[1] = Y2 Y[2] = Y3 def check(): list = [] for i in xrange(4): for j in xrange(i + 1, 4): dx = X[i] - X[j] dy = Y[i] - Y[j] list.append(dx * dx + dy * dy) list.sort() l = list[0] return list[0] == l and list[1] == l and list[2] == l and list[3] == l and list[4] == 2 * l and list[5] == 2 * l def solve(): for x in xrange(-200, 200 + 1): for y in xrange(-200, 200 + 1): X[3] = x Y[3] = y if check(): print x, y return if __name__ == '__main__': solve()