K=int(input()) P=0 for i in range(1,K+1): P+=1/i print(P/K)