#include <iostream>
#include <string>

int main(){
	int num;
	std::string english;
	std::cin >> num;

	for(int i=0;i<num;i++){
		std::cin >> english;
		while(english.find("Hoshino") != -1){
			int find = str.find("Hoshino");
			english.replace(find, find+6, "Hoshina");
		}
		std::cout << english;
	}
    return 0;
}
