n = int(input())

s = 0

while n > 0:
    s += n ** (-1)
    n -= 1

print(f"{s:.6f}")