#yuki1271 k=int(input()) if k==0: print(1.644934066848226436472) exit() res=0 for i in range(1,k+1): res+=1/i print(res/k)