'''
Read ‘m’ and ‘n’.
Take m*n matrix.
If any number is consecutive 3 times either in row ,column ,diagonals print that number , if
there are multiple numbers then print min of those numbers.

Ex: m=6 ,n=7,take 6*7 matrix
2 3 4 5 6 2 4 3
2 3 4 7 6 7 6 2
2 3 5 5 5 5 2 5
2 3 1 1 2 1 3 6
1 1 1 1 9 0 3 5
2 3 1 1 5 1 2 7
O/p :1

'''