Go: package main

import (
	"bufio"
	"fmt"
	"os"
	"strings"
)

var scanner = bufio.NewScanner(os.Stdin)

func main() {
	var n int
	fmt.Scanf("%d", &n)

	result := make([]string, n, n)

	for i := 0; i < n; i++ {
		scanner.Scan()
		input := scanner.Text()

		result[i] = strings.Replace(input, "Hoshino", "Hoshina", -1)
	}

	for _, v := range result {
		fmt.Println(v)
	}
}

Python: n = int(input())
for _ in range(n):
    print(input().replace("Hoshino", "Hoshina"))

Python: [print(input().replace('Hoshino', 'Hoshina')) for _ in range(int(input()))]

Python: while True:
    num = int(input())
    if not num:
        break
    data = [input() for _ in range(num)]
    [print(el.replace('Hoshino', 'Hoshina')) for el in data]

Python: N = int(input())
for i in range(N):
	char = input()
	print(char.replace('Hoshino', 'Hoshina'))

Python: def get_length(sentence):
    length = 0

    while True:
        try:
            if sentence[length] is not None:
                length += 1
        except:
            break

    return length


n = int(input())
target = "Hoshino"
target_right = "Hoshina"
length_target = get_length(target)

for __ in range(n):
    sentence = input()
    length = get_length(sentence)
    
    for i in range(length - length_target +1):
        correct = True
        for j in range(length_target):
            if sentence[i+j] != target[j]:
                correct = False
                break
        if correct:
            after = ""
            for j in range(i):
                after += sentence[j]
            after += target_right
            for j in range(i+length_target, length):
                after += sentence[j]
            sentence = after

    print(sentence)

Python: n=int(input())
s=[input() for i in range(n)]

for str in s:
    print(str.replace('Hoshino', 'Hoshina'))

Python: n=int(input())
for i in range(n):
    s=input()
    for i in range(len(s)-7):
        if s[i:i+6]=='Hoshino':
            s[i:i+6]='Hoshina'

Python: n=int(input())
for i in range(n):
	inputs=list(map(str,input().split()))
	ans=""
	for j in inputs:
		if j[:7]=="Hoshino":
			ans+="Hoshina"+j[7:len(j)]+" "
			#print("Hoshina",end=" ")
		else:
			ans+=j+" "
			#print(j,end=" ")
	ans=ans[:-1]
	print(ans)

Python: n=int(input())
spam=[]
for i in range(n):
    s=input()
    for j in range(len(s)-7):
        if s[j:j+6]=='Hoshino':
           s[j+6]='a'
    spam.append(s)

for i in range(len(spam)):
    print(spam[i])(spam[i])

Python: while True:
    num = int(raw_input())
    if not num:
        break
    data = [raw_input() for _ in range(num)]
    for el in data:
        print(el.replace('Hoshino', 'Hoshina'))

Python: import sys

n = int(input())
for i in range(n):
	string = input()
	if string.find('Hoshino') != -1:
		print(string.replace('Hoshino','Hoshina'))
	else:
		print(string)

Python: import sys

input()
for i in sys.stdin.readlines():
    print(i.replace('Hoshino', 'Hoshina'))

Python: #N,M,L = list(map(int, input().split()))

N=int(input());
L=[];
for i in range(N):
	L.append(input());

def calc(s):
	s_len=len(s);
	flag=0;
	check="Hoshino"
	hoshino_len=len(check);

	F=list(s);
	for i in range(s_len-hoshino_len+1):
		flag=0;
		if F[i]=='H':
			flag=1;
			for j in range(hoshino_len):
				if F[i+j]!=check[j]:
					flag=0;
					break;
			if flag==1:
				F[i+6]='a'
	F2="".join(F);
	print(F2);

for i in range(N):
	calc(L[i]);

Python: import sys
#from me.io import dup_file_stdin

#@dup_file_stdin
def solve():
    for index in range(int(sys.stdin.readline())):
        print(sys.stdin.readline()[:-1].replace("Hoshino","Hoshina"))
        
solve()

Python: N = int(input())
ans = ""
for i in range(N):
    inp = list(map(str, input().split()))
    tmp = ""
    for j in range(len(inp)):
        if inp[j] == "Hoshino":
            inp[j] = "Hoshina"
        tmp += inp[j] + " "
    ans += tmp + "\n"
print(ans)

Python: num = int(input())

for i in range(num):
    box = input()
    box.replace("Hoshino", "Hoshina")
    print(box)

Python: import sys

def main():
  n = int(sys.stdin.readline())
  for _ in range(n):
    line = sys.stdin.readline()
    print(line.strip().replace("Hoshino", "Hoshina"), end="\n")

if __name__ == "__main__":
  main()

Python: n = int(input())
for i in range(n):
    s =input()
    print(s.replace("Hoshino","Hoshina"))

Python: n = int(input())
for i in range(n):
  l = [s for s in input().split()]
  for s in l:
    if 'Hoshino' in s:
      l[l.index(s)] = s.replace('Hoshino','Hoshina')
  a = ''
  for s in l:
    a += s
    a += ' '
  a = a.rstrip(' ')
  print(a)

Python: n=int(input())
s=[input() for i in range(n)]
for i in range(n):
    if "Hoshino" in s[i]:
        s[i]=s[i].replace("Hoshino","Hoshina")
for i in s:
    print(i)

Python: var1 = int(input())
str2 = "Hoshino"
str3 = "Hoshina"


for i in range(0, var1):

    str1 = input()
    if str1.find(str2) >= 0:
        str1 = str1.replace(str2, str3)
    print(str1)

Python: n = int(input())
for i in range(n):
    print(input().replace("Hoshino","Hoshina"))

Python: n = int(input())
for i in range(n):
    lst = input().split()
    ans = []
    for s in lst:
        if s.count("Hoshin"):
            ans.append("Hoshina")
        else:
            ans.append(s)
    # print(ans)
    for s in ans:
        if s == ans[-1]:
            print(s)
        else:
            print(s, end=" ")

Python: [print(input().replace('Hoshino', 'Hoshina')) for _ in range(int(input()))]

Python: #!/usr/bin/env python3

import sys
input_lines = [i[:-1].split(' ') for i in sys.stdin.readlines()]
str = ""

for i in input_lines:
	line = ''
	for l in i:
		if l == 'Hoshino':line += 'Hoshina'
		else:line += l
		line+=' '
	str += line[:-1]+'\n'
print(str[:-1])

Python: # -*- coding: utf-8 -*-
"""
http://judge.u-aizu.ac.jp/onlinejudge/description.jsp?id=0101&lang=jp
"""
import sys


def solve(data):
    result = data.replace('Hoshino', 'Hoshina')
    return result


def main(args):
    num = int(input())
    for _ in range(num):
        data = input().strip()
        result = solve(data)
        print(result)


if __name__ == '__main__':
    main(sys.argv[1:])

Python: N = int(input())
ans = ""
for i in range(N):
    inp = list(map(str, input().split()))
    tmp = ""
    for j in range(len(inp)):
        if inp[j] == "Hoshino":
            inp[j] = "Hoshina"
        tmp += inp[j] + " "
    if i != N-1:
        ans += tmp + "\n"
    else:
        ans += tmp
print(ans)

Python: n = int(input()) 

D = []
for i in range(n):
       a=str( input())
       D.append(a)

       D_replace=[s.replace('Hoshino' , 'Hoshina') for s in D]
       print(D_replace[0])
       D=[]

Python: def Aizu_PR():
    for _ in range(int(input())):
        print(input().replace("Hoshino","Hoshina"))

Aizu_PR()

Python: N = int(input())

for i in range(N):
    s = input()
    print(s.replace("Hoshino","Hoshina"))

Python: N=int(input())
for i in range(N):
    print(input().replace("Hoshino","Hoshina"))

Python: if __name__ == '__main__':
    n = (int)(input())
    for _ in range(n):
        tmp_txt = input()
        print(tmp_txt.replace("Hoshino","Hoshina"))

Python: n = int(input())
for _ in range(n):
  s = input()
  print(s.replace('Hoshino', 'Hoshina'))

Python: import sys
import math

r = sys.stdin.readlines()

r.pop(0)
r.pop(0)


n = [[i for i in (j.split())] for j in r] #n is list of each lines
    

for line in n:
    for c in line:
        if c == "hosino":
            c = "hosina"
        print(c,end = " ")
    print("")

Python: import sys
 
def main():
  for line in sys.stdin.readlines()[1:]:
    print(line.strip().replace("Hoshino", "Hoshina"))
 
if __name__ == "__main__":
  main()

Python: for _ in[0]*int(input()):print(input().replace('Hoshino','Hoshina'))

Python: # coding: utf-8

count = int(input())
for i in range(count):
    print(input().replace("Hoshino","Hoshina"))