#include using namespace std; typedef long long ll; int main() { int n; cin>>n; string s[n]; int len=0; for (int i=0;i>s[i]; len+=s[i].size(); } int m; cin>>m; string t[m]; for (int i=0;i>t[i]; for (int i=0;ib.size()) { bool f=0; for (int j=0;j