import sys input = lambda :sys.stdin.readline()[:-1] ni = lambda :int(input()) na = lambda :list(map(int,input().split())) yes = lambda :print("yes");Yes = lambda :print("Yes") no = lambda :print("no");No = lambda :print("No") ####################################################################### def sub(a, b): return (a[0] - b[0], a[1] - b[1]) def norm(a) -> float: x = abs(a[0]) y = abs(a[1]) return x ** p + y ** p def dist(a, b): return norm(sub(a, b)) p = float(input()) a = na() b = na() c = na() def f(a, b, c): flag = 0 if a[0] == b[0]: a = (a[1], a[0]) b = (b[1], b[0]) c = (c[1], c[0]) flag = 1 uy = 10**6 ly = -10**6 if a[0] > b[0]: right = a left = b else: right = b left = a def f(left, right, my): ux = 10**10 lx = -10**10 for _ in range(100): mx = (ux + lx) / 2 if dist(left, (mx, my)) > dist(right, (mx, my)): ux = mx else: lx = mx return ux x = f(left, right, uy) if dist(c, (x, uy)) < dist(left, (x, uy)): up = c down = left else: up = left down = c for _ in range(100): my = (uy + ly) / 2 x = f(left, right, my) if dist(up, (x, my)) < dist(down, (x, my)): uy = my else: ly = my ox, oy = f(left, right, uy), uy D = max(dist(a, (ox, oy)) , dist(b, (ox, oy)) , dist(c, (ox, oy))) if flag: ox, oy = oy, ox return D, ox, oy ans, OX, OY = 10**18, 0, 0 for _ in range(3): D, ox, oy = f(a, b, c) #print(D, ox, oy) if D < ans: ans = D OX, OY = ox, oy a,b,c = b,c,a print(OX, OY)