#include int h,w,i,j,x,y;char s[1002][1002];main(){scanf("%d%d",&h,&w);for(i=0;i