l, b = input().split() L = int(l) B = int(b) count = 0 while L > 0: L -= 2*B if L > 0: count += 1 else: break print(count*B)