import java.io.IOException; import java.io.InputStream; import java.io.PrintWriter; import java.util.NoSuchElementException; public class Main { static FastScanner scan = new FastScanner(); static PrintWriter out = new PrintWriter(System.out); public static void main(String[] args) { int H = scan.nextInt(); int W = scan.nextInt(); char[][] map = new char[H][W]; char[][] work = new char[H][W]; for(int i=0; i