def roop_n(n): ans = 0 if n == 0: pass else: ans = n + roop_n(n - 1) return ans n, k = map(int, input().split()) denominator = (n + 1) * k numerator = k * (roop_n(n)) print(numerator / denominator)