N=int(input()) 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)