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

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