n = int(input())
H = 0
for i in range(1, n+1):
   H += 1/i
print(H)

1/1 = 1 所以直接开始就可以了,range函数不包含stop值(顾前不顾后)所以+1