#include<map>
#include<set>
#include<list>
#include<cmath>
#include<queue>
#include<stack>
#include<cstdio>
#include<string>
#include<vector>
#include<complex>
#include<cstdlib>
#include<cstring>
#include<climits>
#include<numeric>
#include<sstream>
#include<iostream>
#include<algorithm>
#include<functional>

using namespace std;

int main(){
	int n,check;
	string str;
	cin >> n;
	for(int i=0;i<=n;i++){
		getline(cin,str);
		if(str.find("Hoshino") != string::npos){
			str.replace(str.find("Hoshino"),7,"Hoshina");
		}
		cout << str << endl;
	}
	return 0;
}