a,b = map(int,input().split()) count_num =0 while a - 2*b >0: count_num += 1 a -= 2*b print(count_num*b)