#include <bits/stdc++.h>
using namespace std;
int main() {
  int n;
  cin >> n;
  string s;
  while (getline(cin, s)) {
    while (s.find("Hoshino") != string::npos) {
      s[s.find("Hoshino") + 6] = 'a';
    }
    cout << s << endl;
  }
  return 0;
}
