n, k = map(int, input().split()) res = 0 cnt = 0 for i in range(n+1): res += i*k cnt += k print(res / cnt)