from decimal import Decimal as d k=d(input()) n=d('1') res=d('0') for i in range(2*10**6): res+=d('1')/(n*(n+k)) n+=d('1') print(res)