atcoder.jp
from math import cos, sin, atan2
n = int(input())
x0, y0 = map(int, input().split())
x2, y2 = map(int, input().split())
xh = (x0+x2)/2
yh = (y0+y2)/2
r = ((x0-x2)**2+(y0-y2)**2)**0.5
r/=2
A = atan2((y0-yh), (x0-xh))
x = r*cos(A+(2*pi)/n)+xh
y = r*sin(A+(2*pi)/n)+yh
print(x, y)
from cmath import rect
from math import pi
n = int(input())
x0, y0 = map(int, input().split())
x2, y2 = map(int, input().split())
p0 = complex(x0, y0)
p2 = complex(x2, y2)
o = (p0+p2)/2
r = rect(1, 2*pi/n)
a = (p0-o)*r+o
print("%.10f %.10f"%(a.real, a.imag))