import std.conv;
import std.regex;
import std.stdio;
import std.string;

void main(){
    foreach(i; 0..readln.chomp.to!int)
        writeln(replace(readln.chomp, regex("Hoshino", "g"), "Hoshina"));
}