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