def fun(n,x): if n==1: return x/(1+x) return x/( n + fun(n-1,x)) x,n = input().split() x,n = float(x),int(n) res = fun(n,x) print( '{:.2f}'.format(res))