(defun main (&rest argv) (declare (ignorable argv)) (let* ((a (read)) (b (read)) (n (read))) (format t "~d~%" (ecase (mod n 3) (0 a) (1 b) (2 (logxor a b)))))) (main)