K=int(input()) sm=sum(1/n for n in range(1,K+1)) print(sm/K)