(defun main (&rest argv) (declare (ignorable argv)) (let* ((n (read)) (m (make-array n :element-type 'string)) (x "DCHS") (y "A23456789TJQK") (flag nil)) (dotimes (i n) (setf (aref m i) (string (read)))) (dotimes (i 4) (dotimes (j 13) (dotimes (k n) (when (and (char= (char x i) (char (aref m k) 0)) (char= (char y j) (char (aref m k) 1))) (when flag (format t " ")) (setq flag t) (format t "~a" (aref m k)))))) (terpri))) (main)