#include <bits/stdc++.h>
int main() {
  char a[1000], b[] = "Hoshino";
  int c, d, i, n;
  scanf("%d\n", &n);
  for (i = 0; i < n; i++) {
    fgets(a, 1000, stdin);
    c = 0;
    d = 0;
    while (1) {
      if (a[c] == b[d]) d++;
      if (d == 7) {
        d = 0;
        a[c] = 'a';
      }
      c++;
      if (a[c] == '\n' || a[c] == EOF) break;
    }
    printf("%s", a);
  }
  return 0;
}
