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