(defconstant +d+ "01234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991") (defun main (&rest argv) (declare (ignorable argv)) (let* ((n (read)) (a (make-array 191 :element-type 'integer :initial-element 0)) (b (make-array 192 :element-type 'integer :initial-element 0))) (loop for i to 190 do (setf (aref a i) (- (char-code (char +d+ i)) (char-code #\0)))) (loop for i from 190 downto 0 do (setf (aref b i) (+ (* (aref a i) n) (floor (- (aref b (1+ i)) (mod (aref b (1+ i)) 10)) 10)))) (format t "~d." (aref b 0)) (loop for i from 1 to 190 do (format t "~d" (mod (aref b i) 10))) (terpri))) (main)