#include<stdio.h>
#include<string.h>
#include<iostream>
#include<algorithm>
using namespace std;

int main(){

  int n;
  char *str;

  scanf("%d",&n);

  for(int i=0;i<n;i++){
   
    while(scanf("%s",str)!=EOF){
      if(strcmp(str,"Hoshino")==0){
	printf("Hoshina");
      }
      else {
	printf("%s",str);

      }

    }
    printf("\n");

  }

  return 0;
}