#include <bits/stdc++.h>
using namespace std;
string a, b;
int n;
int main() {
  b = "Hoshina";
  cin >> n;
  for (int i = 1; i <= n + 1; i++) {
    getline(cin, a);
    if (a.find("Hoshino") != -1) {
      a.insert(a.find("Hoshino"), b);
      a.erase(a.find(b) + 7, 7);
    }
    cout << a << endl;
  }
  return 0;
}
