import math l = [float(i) for i in input().split()] a = l[0]/2 count = 0 while a-l[1] > 0: count += 1 a = a - l[1] print(int(count*l[1]))