import java.io.PrintWriter; import java.util.Scanner; public class Main2 { static Scanner scan = new Scanner(System.in); static PrintWriter out = new PrintWriter(System.out); static int H, W; static char[][] map; static int [][] ansMap; static int[] dx = {-1, -1, 0}; static int[] dy = {0, -1, -1}; public static void main(String[] args) { String line = scan.nextLine(); String values[] = line.split(" "); H = Integer.parseInt(values[0]); W = Integer.parseInt(values[1]);; map = new char[H][W]; ansMap = new int[H][W]; int ans = 0; for(int i=0; i