(define (System.out.println x) (begin (display x) (newline) ) ) (define (CngClr C) (if (string=? C "W") "B" "W" ) ) (let ( (W (read)) (H (read)) (C (symbol->string (read))) ) (let loop((i 1) (j 1) (Color C)) (begin (display Color) (if (= i W) (if (= j H) (newline) (begin (newline) (if (= (modulo W 2) 0) (loop 1 (+ j 1) Color) (loop 1 (+ j 1) (CngClr Color)) ) ) ) (loop (+ i 1) j (CngClr Color)) ) ) ) )