var Main = function(input){
	var list = input.split("\n");
	for(var i = 1; i < list.length; i++){
		console.log(list[i].replace(new RegExp("Hoshino", "g"), "Hoshina"));
	}
};

Main(require("fs").readFileSync("/dev/stdin", "utf8"));