#include <bits/stdc++.h>
using namespace std;
int main(void){
    int n;
    cin>>n;
    string s;
    for (int i=0;i<=n;i++) {
        getline(cin,s);
        if (s!="") {
            for (int i=0;i<s.size();i++) {
                if (s[i]=='H') {
                    if (i+6<s.size()) {
                        if (s[i+1]=='o'&&s[i+2]=='s'&&s[i+3]=='h'&&s[i+4]=='i'&&s[i+5]=='n'&&s[i+6]=='o') {
                            cout<<"Hoshina";
                            i+=6;
                        } else {
                            cout<<s[i];
                        }
                    } else {
                        cout<<s[i];
                    }
                } else {
                    cout<<s[i];
                }
            }
            cout<<endl;
        }
    }
}
