#include <bits/stdc++.h>
using namespace std;
int main() {
  int n;
  cin >> n;
  while (getchar() != '\n')
    ;
  for (int i = 0; i < n; i++) {
    char str[1001];
    char *p;
    fgets(str, sizeof(str), stdin);
    while (strstr(str, "Hoshino") != NULL) {
      p = strstr(str, "Hoshino");
      *(p + 6) = 'a';
    }
    cout << str;
  }
  return 0;
}
