(defun main (&rest argv) (declare (ignorable argv)) (let* ((x (read)) (n (read)) (m (read)) (p nil) (q nil)) (dotimes (_ n) (let* ((a (read))) (when (= a x) (setq p t) (return)))) (dotimes (_ m) (let* ((b (read))) (when (= b x) (setq q t) (return)))) (format t "~a~%" (cond ((and p q) "MrMaxValu") (p "MrMax") (q "MaxValu") (t "-1"))))) (main)