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