#include #include int h,w,k; char s[1005][1005]; main(){ std::cin>>h>>w; for(int i=0;i>s[i][j]; for(int i=0;i