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

int main()
{
	string n;
	getline(cin, n);
	string s;
	while (getline(cin, s))
	{
		for (int i = 0; i < s.size() - 6; i++)
		{
			if (s[i] == 'H' && s[i+1] == 'o' && s[i+2] == 's' && s[i+3] == 'h' && s[i+4] == 'i' && s[i+5] == 'n' && s[i+6] == 'o')
			{
				s[i + 6] = 'a';
			}
		}
		cout << s << endl;
	}

	return 0;
}