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