#include <bits/stdc++.h>
using namespace std;
int main() {
  int num;
  char c;
  cin >> num;
  scanf("%c", &c);
  for (int i = 0; i < num; i++) {
    string str;
    while (1) {
      scanf("%c", &c);
      if (c == '\n') {
        if (str != "Hoshino")
          cout << str << endl;
        else
          cout << "Hoshina" << endl;
        break;
      }
      if (c == ' ') {
        if (str != "Hoshino")
          cout << str << " ";
        else
          cout << "Hoshina ";
        str = "";
        continue;
      }
      if (!(c >= 'a' && c <= 'z' || c >= 'A' && c <= 'Z')) {
        if (str != "Hoshino")
          cout << str << c;
        else
          cout << "Hoshina" << c;
        str = "";
        continue;
      }
      str += c;
    }
  }
  return 0;
}
