﻿from math import *

N=int(input())
S=0
for k in range(-N,N+1):
    S=S+sin(k*pi/(2*N))
print(S)

