import java.io.*; import java.util.*; import java.awt.*; import java.text.*; import java.math.*; /** * Solution to Minesweeper */ class minesweeper { public Scanner sc; public PrintStream ps; public String toString() { return "minesweeper"; } /** * The main method * * @throws Exception */ public void doit() throws Exception { sc = new Scanner( System.in ); // new Scanner( new File( "minesweeper.judge" ) ); ps = System.out; // new PrintStream( new FileOutputStream( "minesweeper.solution" ) ); for(;;) { // Read in rows, columns int r = sc.nextInt(); int c = sc.nextInt(); // Exit if at end if( r==0 && c==0 ) break; // Read in the board char board[][] = new char[r][]; for( int i=0; i=0 && ii=0 && jj