n = int(input())

result = 1
for i in range(2, n + 1):
    result += 1 / i
print(format(result, '.6f'))