n=int(input())
p=1<=n<=1000
if p:print(f'{sum(1/i for i in range(1,n+1)):.6f}')
else:print('请满足1≦n≦1000的正整数')