#include <bits/stdc++.h>
using namespace std;
int main() {
  int n;
  string s;
  string d = "Hoshina";
  cin >> n;
  getline(cin, s);
  while (n--) {
    getline(cin, s);
    while (1) {
      unsigned int loc = s.find("Hoshino");
      if (loc != string::npos)
        s.replace(loc, d.size(), d);
      else
        break;
    }
    cout << s << endl;
  }
  return 0;
}
