PROGRAMMING:Knowledge
Each person's level of knowledge is 0 ~ 9, and 0 ~ 9 is used to indicate his level of knowledge. As we all know, it's a lot of nonsense to discuss calculus with newborn babies, so people with less knowledge can participate in the discussion,
Now, given an M * N group, given each person's education level, each person can only discuss with the upper, lower, left and right sides, so please find out the number of academic discussion groups.
###Input format:
Integer m, n (M rows, n columns) matrix separated by spaces (1 ≤ m, n ≤ 100).
###Output format:
The number of knowledge groups.
###Input example:
Here is a set of inputs. For example:
```in
4 10
0674800011
one billion thirty-four million five hundred and sixty thousand and five hundred
0039600651
0000000098
```
###Output example:
The corresponding output is given here. For example:
```out
four
```
answer:If there is no answer, please comment
Now, given an M * N group, given each person's education level, each person can only discuss with the upper, lower, left and right sides, so please find out the number of academic discussion groups.
###Input format:
Integer m, n (M rows, n columns) matrix separated by spaces (1 ≤ m, n ≤ 100).
###Output format:
The number of knowledge groups.
###Input example:
Here is a set of inputs. For example:
```in
4 10
0674800011
one billion thirty-four million five hundred and sixty thousand and five hundred
0039600651
0000000098
```
###Output example:
The corresponding output is given here. For example:
```out
four
```
answer:If there is no answer, please comment