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