(define (System.out.println x) (begin (display x) (newline) ) ) (define (^ x y) (let loop((i 0) (foo 1)) (if (= i y) foo (loop (+ i 1) (modulo (* foo x) 10)) ) ) ) (let ( (N (modulo (read) 10)) (M (read)) ) (System.out.println (^ N M)) )