import math K=int(input()) if K==0: print(math.pi*math.pi/6) exit() P=0 for i in range(1,K+1): P+=1/i print(P/K)