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