#include using namespace std; int main(){ int q; cin >> q; string temp="hackerrank"; for(int a0 = 0; a0 < q; a0++){ string s; cin >> s; // your code goes here int idx1=0; int idx2=0; while(idx2!=s.size()){ if(s[idx2]==temp[idx1]){ idx1++; idx2++; } else{ idx2++; } if(idx1==temp.size()) {cout<<"YES"<