#include #include #include using namespace std; int H,W; string S[20],T[20]; int main() { ios::sync_with_stdio(false); cin.tie(nullptr); cin>>H>>W; for(int i=0;i>S[i]; for(int i=0;i>T[i]; bool X=true,Y=true; for(int i=0;i