#include using namespace std; int main() { int H,W; cin>>H>>W; for(int i=0; i>S; string t="."+S; int j=1; while(j