#include using namespace std; int main(){ int q; cin >> q; for(int a0 = 0; a0 < q; a0++){ string hack = "aacehkknrr"; string s; cin >> s; // your code goes here sort(s.begin(), s.end()); //sort(hack.begin(), hack.end()); //cout << s << endl; //cout << hack << endl; bool res = includes(s.begin(), s.end(), hack.begin(), hack.end()); if(res){ cout << "YES" << endl; } else{ cout << "NO" << endl; } } return 0; }