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