k=int(input()) s=0 for i in range(1,k+1): s+=1/i print(s/k if k>0 else 3.14159265358979**2/6)