import java.util.*; public class Ichimatsu{ public static void main(String[] arg){ Scanner sc = new Scanner(System.in); int w,h; char b; w = sc.nextInt(); h = sc.nextInt(); b = sc.next().charAt(0); if(b == 'B'){ for(int i = 0;i