Your task is to write a program to accept this input and produce as output a hint-field of identical dimensions where each square is a * for a mine or the number of adjacent mine-squares if the square does not contain a mine.
Input:
*...
....
.*..
....
Output:
*100
2210
1*10
1110