k=int(input()) ans=0 for i in range(1,10**6): ans+= 10**12 / (i*(i+k)) print(round(ans/10**12,6))