import math K=int(input()) if K: sm=sum(1/n for n in range(1,K+1)) print(sm/K) else: print(math.pi**2/6)