(define (System.out.println x) (begin (display x) (newline) ) ) (let ( (N (modulo (read) 10)) (M (modulo (read) 12)) ) (System.out.println (modulo (expt N M) 10)) )