N, K = map(int, input().split()) x = (N * (N + 1) // 2) * K print(x / ((N + 1) * K))