#include#include int main(){ int m,n,i,j; int count; int **a; while(~scanf("%d%d",&m,&n)) { if(m<3||n<3||m>20||n>20) continue; count=0; a=(int **)malloc(m*sizeof(int *)); for(i=0;i a[i-1][j]&&a[i][j]>a[i+1][j]&&a[i][j]>a[i][j-1]&&a[i][j]>a[i][j+1]) { count++; printf("%d %d %d\n",a[i][j],i+1,j+1); } if(count==0) printf("None %d %d\n",m,n); } return 0;}