(defun main (&rest argv) (declare (ignorable argv)) (let* ((n (read)) (a 0)) (loop for i to (floor n 5) do (loop for j to i do (loop for k to (floor n 3) do (when (= n (+ (* i 5) (* j 2) (* k 3))) (incf a))))) (format t "~d~%" a))) (main)