import java.util.Scanner; public class Main2 { static Scanner scan = new Scanner(System.in); static int[] dx = {-1, -1, 0}; static int[] dy = {0, -1, -1}; public static void main(String[] args) { int H = scan.nextInt(); int W = scan.nextInt(); char[][] map = new char[H][W]; int [][] ansMap = new int[H][W]; int ans = 0; for(int i=0; i