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