#include <iostream>
#include <string>



int main(){
	std::string str;
	u_int data_num;
	std::cin >> data_num;
	std::cin.ignore();
	for(u_int i = 0; i < data_num; ++i){
		int loc = 0;
		std::getline(std::cin, str);
		while((loc = str.find("Hoshino", loc)) != -1){
			str[loc+6] = 'a';	
		}
		std::cout << str << std::endl;
	}
	
	return 0;
}
		