#include <bits/stdc++.h>
int main() {
  int n, now;
  char a[1000], c;
  a[7] = '\0';
  while (scanf("%d\n", &n) != EOF) {
    now = 0;
    while (now < n) {
      scanf("%s", a);
      if (a[0] == 'H' && a[1] == 'o' && a[2] == 's' && a[3] == 'h' &&
          a[4] == 'i' && a[5] == 'n' && a[6] == 'o' && a[7] == '\n')
        printf("Hoshina");
      else
        printf("%s", a);
      scanf("%c", &c);
      printf("%c", c);
      if (c == '\n') now++;
      a[7] = '\0';
    }
  }
}
