#include <bits/stdc++.h>
int main() {
  char a[] = "Hoshino", b;
  int i, j = 0, n;
  scanf("%d\n", &n);
  for (i = 0; i < n; i++) {
    while ((b = getchar()) != '\n' && b != EOF) {
      if (b == a[j])
        j++;
      else
        j = 0;
      if (j == 7) {
        j = 0;
        putchar('a');
      } else
        putchar(b);
    }
    putchar('\n');
  }
  return 0;
}
