#include #include #include #include #include using namespace std; bool check(string s1,string s2) { int l1,l2 ; l1=s1.length() ; l2=s2.length() ; int i,j ; i=0,j=0 ; while(i>t ; while(t--) { cin>>s2 ; if(check(s1,s2)) cout<<"YES" ; else cout<<"NO" ; cout<