l, k = map(int, input().split()) n = l // (2*k) print(n*k)