n=int(input())
sum=0
if n==0:
    print(0)
else:
    for i in range(1,n+1):
        sum+=1/i
        sum=sum
    print(f"{sum:.6f}")