#include <bits/stdc++.h>
int main() {
  int data_set_num;
  std::cin >> data_set_num;
  std::string word;
  while (std::cin >> word) {
    if (word == "Hoshino") {
      word = "Hoshina";
    }
    std::cout << word << " ";
  }
  return 0;
}
