(defvar F0) (defvar F1) (defvar N) (defvar temp) (setq temp (read-from-string (concatenate 'string "(" (read-line) ")"))) (setq F0 (nth 0 temp)) (setq F1 (nth 1 temp)) (setq N (nth 2 temp)) ;(format t "~d ~d~%" N M) (setq temp 0) (loop for i from 2 to N do (setq temp f1) (setq f1 (logxor f0 f1) ) (setq f0 temp)) (format t "~d~%" (case N (0 F0) (1 F1) (otherwise f1)))