(defun main (&rest argv)
  (declare (ignorable argv))
  (let* ((s (read-line)))
    (format t "~Aham~%" (if (string= s "ham") "" s))))

(main)