#include #include #include using namespace std; void solve(int n, string s){ const string hello = "helloworld"; for(int i = n-10; i >= 0; i--){ bool isok = true; for(int j = 0; j < 10; j++){ if(!(s[i+j] == '?' || s[i+j] == hello[j])) isok = false; } if(isok){ for(int j = 0; j < 10; j++) s[i+j] = hello[j]; for(int j = 0; j < n; j++){ if(s[j] == '?') s[j] = 'a'; } cout << s << '\n'; return; } } cout << -1 << '\n'; } int main(){ int t; cin >> t; while(t--){ int n; cin >> n; string s; cin >> s; solve(n, s); } return 0; }