#include <bits/stdc++.h>
char *p, s[1002];
int main() {
  for (scanf("%*d"), getchar(); ~scanf("%c%s", s, s + 1);
       p ? p[6] = 'a' : 0, printf(s))
    p = strstr(s, "Hoshino");
  return !puts("");
}
