#include <iostream>
#include <string>

int main(){
  int n;
  int i = 0;
  std::string str;

  std::cin >> n;

  while(n > 0){
    
    //文字列の読み込み
    while(std::cin >> str){
        ++i;
    //"Hishino"を"Hoshina"に変換
        if(str.find("Hoshino") != std::string::npos)
            str = "Hoshina";
        
        std::cout << str << std::endl;
    }
        --n;
  }
}

