#include using namespace std; string s[20]; int h,w,r,k; int H[20],W[20]; main() { cin>>r>>k>>h>>w; for(int i=0;i>s[i]; if(r==0) { for(int i=0;i