#include <bits/stdc++.h>
int main() {
  int n, now;
  char c;
  while (scanf("%d\n", &n) != EOF) {
    now = 0;
    while (now < n) {
      scanf("%c", &c);
      if (c == 'H') {
        scanf("%c", &c);
        if (c == 'o') {
          scanf("%c", &c);
          if (c == 's') {
            scanf("%c", &c);
            if (c == 'h') {
              scanf("%c", &c);
              if (c == 'i') {
                scanf("%c", &c);
                if (c == 'n') {
                  scanf("%c", &c);
                  if (c == 'o') {
                    printf("Hoshina");
                  } else
                    printf("Hoshin%c", c);
                } else
                  printf("Hoshi%c", c);
              } else
                printf("Hosh%c", c);
            } else
              printf("Hos%c", c);
          } else
            printf("Ho%c", c);
        } else
          printf("H%c", c);
      } else
        printf("%c", c);
      if (c == '\n') now++;
    }
  }
}
