; k * ((⌈l / k⌉ - 1) / 2) (defun main () (let* ((l (read)) (k (read)) (ans (* k (ash (1- (ceiling l k)) -1)))) (princ ans) (terpri))) (main)