function count(l, k, r) if l > 0 then return count(l-2*k, k, r+1) end return r - 1 end local l, k = io.stdin:read("*n"), io.stdin:read("*n") print(count(l, k, 0) * k)