n=int(input())
def sum(n):
    if n==1:
        return 1
    else:
        return sum(n-1)+1/n
print(f'{sum(n):.6f}')