n=input("n = ")
L=0
for k =1:n
    a=(k-1)*%pi/n
    b=k*%pi/n
    L=L+sqrt((sin(b)-sin(a))^2+(b-a)^2)
end
afficher(L)