#include <bits/stdc++.h>
int main(void) {
  int n;
  int i, k, s;
  char x[2001], a[1001];
  scanf("%d", &n);
  fgets(a, sizeof(a), stdin);
  for (k = 0; a[k] != '\0'; k++) {
    if (a[k] == 'H' && a[k + 1] == 'o' && a[k + 2] == 's' && a[k + 3] == 'h' &&
        a[k + 4] == 'i' && a[k + 5] == 'n' && a[k + 6] == 'o')
      a[k + 6] = 'a';
  }
  sprintf(x, a);
  for (i = 0; i < n; i++) {
    fgets(a, sizeof(a), stdin);
    for (k = 0; a[k] != '\0'; k++) {
      if (a[k] == 'H' && a[k + 1] == 'o' && a[k + 2] == 's' &&
          a[k + 3] == 'h' && a[k + 4] == 'i' && a[k + 5] == 'n' &&
          a[k + 6] == 'o')
        a[k + 6] = 'a';
    }
    strcat(x, a);
  }
  printf(x);
  return 0;
}
