#include<string>
#include<iostream>
using namespace std;

int main(){
	int n;
	while(cin>>n){
		string s;
		bool fir=true;
		while(cin>>s){
			if(!fir)cout<<" ";
			if(s=="Hoshino")cout<<"Hoshina";
			else cout<<s;
			if(s.find('\n')!=string::npos)break;
			fir=false;
		}
		cout<<endl;
	}	
}