import sys

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