(defun main (&rest argv) (declare (ignorable argv)) (let* ((h (read)) (w (read)) (n (read)) (k (read))) (format t "~a~%" (if (= (mod (* h w) n) (mod k n)) "YES" "NO")))) (main)