n=int(input())
h=0
for i in range(1,n+1):
    h+=i**(-1)
print("{:.6f}".format(h))