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