#include using namespace std; string temp="hackerrank"; bool check(string s) { int k=0; for(int i=0; k>q; while(q--) { string s; cin>>s; if(check(s)) cout<<"YES"<