def f(x, n): if n == 1: s = x / (1 + x) elif n > 1: s = x / (n + f(x, n - 1)) return s x = int(input()) n = int(input()) print("%.2f" % f(x, n))