#include <bits/stdc++.h>
using namespace std;
int main(){
	
	cin.tie( 0 );
	ios::sync_with_stdio( false );
	
	int n;
	cin >> n;
	cin.ignore(); //<-----!!!!!!!!!!
	string s;
	
	while( getline( cin, s ) ){
		
		auto found = s.find( "Hoshino" );
		
		if( found != string::npos ){
			s.replace( found, 7, "Hoshina" );
			cout << s << endl;
		}else{
			cout << s << endl;
		}
	}
	return 0;
}