x, y = [int(a) for a in input().split()] print(x // 2 // y * y)