N=int(input()) if N==0: print(2.0) else: mul=1 for i in range(N): mul*=(i+1) goukei=0 for i in range(N): goukei+=mul/(i+1) print(goukei/mul/N)