from re import I
n=int(input())
H=0
for i in range(1,n+1,1):
    H+=1/i
print(float(H))