#include using namespace std; bool check(string s){ string match="hackerrank"; int m=0; for(int i=0; i> q; for(int a0 = 0; a0 < q; a0++){ string s; cin >> s; // your code goes here bool ans=check(s); if(ans) cout << "YES\n"; else cout << "NO\n"; } return 0; }