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