import java.beans.IntrospectionException; import java.util.*; class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int c = sc.nextInt(); int r = sc.nextInt(); char[][] map = new char[r][c]; for(int i=0;i r1 = new ArrayList<>(); ArrayList c1 = new ArrayList<>(); ArrayList r2 = new ArrayList<>(); ArrayList c2 = new ArrayList<>(); boolean first = true; for(int i=0;i rque = new LinkedList<>(); Queue cque = new LinkedList<>(); rque.add(i); cque.add(j); r1.add(i); c1.add(j); while(!rque.isEmpty()){ int rt = rque.poll(); int ct = cque.poll(); map[rt][ct]='x'; for(int k=0;k<4;k++){ if(rt+dx[k]>0 && rt+dx[k]0&&ct+dy[k] rque = new LinkedList<>(); Queue cque = new LinkedList<>(); rque.add(i); cque.add(j); r2.add(i); c2.add(j); while(!rque.isEmpty()){ int rt = rque.poll(); int ct = cque.poll(); map[rt][ct]='x'; for(int k=0;k<4;k++){ if(rt+dx[k]>0 && rt+dx[k]0&&ct+dy[k]