N, K = map(int, input().split()) num = K den = (N + 1) * K p = num / den ans = 0 for i in range(N+1): ans += i * p print(ans)