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