#include #define rep(i, n) for (int i = 0; i < (int)(n); i++) #define all(x) (x).begin(),(x).end() #define fix(x) fixed << setprecision(x) #define eb emplace_back constexpr char nl='\n'; using namespace std; using ll = long long; using ld = long double; using vl = vector; using vvl = vector>; using vs = vector; using pl = pair; template inline bool chmin(T& a, const T& b) {bool compare = a > b; if (a > b) a = b; return compare;} template inline bool chmax(T& a, const T& b) {bool compare = a < b; if (a < b) a = b; return compare;} templateusing rp_queue=priority_queue,greater>; void fast_io(){cin.tie(nullptr);ios_base::sync_with_stdio(false);} template T gcd(T a, T b) {if (b == 0)return a; else return gcd(b, a % b);} template inline T lcm(T a, T b) {return a /gcd(a, b)*b;} const ll INF = 1LL << 60; const ld PI = acos(-1); string now = "helloworld"; void solve(){ int T;cin>>T; while(T--){ int N;cin>>N; string S;cin>>S; vs s; rep(i,N-10+1){ //i番目からhello worldを構築した時にできる文字列t; bool ok = true; rep(j,10){ if(S[i+j]==now[j]||S[i+j]=='?'){} else ok=false; } if(ok){ string t; rep(j,N){ if(i<=j&&j<=i+9){ t+=now[j-i]; }else{ if(S[j]=='?')t+='a'; else t+=S[j]; } } s.push_back(t); } } sort(all(s)); if(!s.empty())cout<> num_tc; rep(tc,num_tc){ //cout << "Case #" << tc+1 << ": " ;// << endl; solve(); } }