L, K = map(int, input().split()) count = 0 while L - (K * 2) > 0: count += 1 L = L - (K * 2) print(K * count)