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