#include <bits/stdc++.h>
int main() {
  char english[1000], correct[] = "Hoshino", *c;
  int i, n;
  scanf("%d\n", &n);
  for (i = 0; i < n; i++) {
    fgets(english, sizeof(english), stdin);
    while ((c = strstr(english, correct)) != NULL) c[6] = 'a';
    printf("%s", english);
  }
  return 0;
}
