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