#include <cstdio>
#include <cstring>
#include <cstdlib>

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

}