import numpy as np n, k = map(int, input().split()) n_sum = np.arange(1, n + 1).sum() denominator = (n + 1) * k numerator = k * n_sum print(numerator / denominator)