N=int(input()) if N==0: print(あうあうあ) 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)