#include<iostream>
using namespace std;

int main(){
  int n;
  char c,tmp;
  int f;

  cin >> n;
  getchar();

  f = 0;
  while(n){
    c = getchar();
    if(f == 0 && c == 'H')f++;
    else if(f == 1){
      if(c == 'o')f++;
      else f = -1;
    }else if(f == 2){
      if(c == 's')f++;
      else f = -1;
    }else if(f == 3){
      if(c == 'h')f++;
      else f = -1;
    }else if(f == 4){
      if(c == 'i')f++;
      else f = -1;
    }else if(f == 5){
      if(c == 'n')f++;
      else f = -1;
    }else if(f == 6){
      if(c == 'o'){
	tmp = getchar();
	if(tmp == '\n' || tmp == ' ')putchar('a');
	else putchar(c);
	c = tmp;
      }
      f = -1;
    }

    if(c == '\n'){
      n--;
      f = 0;
    }else if(c == ' ')f = 0;

    putchar(c);
  }
}