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 i in range(N):
    print(input().replace("Hoshino", "Hoshina"))

Python: for _ in range(int(input())):
    s = input()
    if "Hoshino" in s:
        l = s.split()
        for i in range(len(l)):
            if "Hoshino" == l[i]:
                l[i] = "Hoshina"
        s = " ".join(l)
    print(s)

Python: n=int(input())
for i in range(n):
	inputs=list(map(str,input().split()))
	for j in inputs:
		if j=="Hoshino":
			print("Hoshina",end=" ")
		else:
			print(j,end=" ")
	print()

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

Python: #coding:utf-8

n = input()

for i in range(n):
    str = raw_input().replace("Hoshino", "Hoshina")
    print("%s") % str

Python: n = int(input())

for i in range(n):
    data = input()
    cnv = data.replace('Hoshino', 'Hoshina')
    print(cnv)

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

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()
        result = solve(data)
        print(result)


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

Python: n = int(input())

for i in range(n):
    s = list(input().split())
    for j in range(len(s)):
        if s[j] == 'Hoshino':
            if j == len(s) - 1:
                print("Hoshina", end = "")
            else:
                print("Hoshina", end = " ")
        else:
            if j == len(s) - 1:
                print(s[j], end = "")
            else:
                print(s[j], end = " ")
    print("")

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

Python: import string

n=int(raw_input())

for i in range(n):
    print(raw_input().replace("Hoshino", "Hoshina"))

Python: words=[]
num=int(input())
for i in range(num):
    words.append(i)
    words[i]=input().replace('Hoshino','Hoshina')
for i in range(num):
    print(words[i])

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: n = int(input())

for __ in range(n):
    sentence = input()
    length = 0
    after = ""

    while True:
        try:
            sentence[length]
            length += 1
        except:
            break
    
    for i in range(length-6):
        if sentence[i] == "H":
            if sentence[i+1] == "o":
                if sentence[i+2] == "s":
                    if sentence[i+3] == "h":
                        if sentence[i+4] == "i":
                            if sentence[i+5] == "n":
                                if sentence[i+6] == "o":
                                    for j in range(i+6):
                                        after += sentence[j]
                                    after += "a"
                                    for j in range(i+7,length):
                                        after += sentence[j]
                                        
    print(after)

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

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

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

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

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: l=[input() for i in range(int(input()))]
[print(i.replace("Hoshino","Hoshina")) for i in l]

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

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

Python: # AOJ 0101: Aizu PR
# Python3 2018.6.17 bal4u

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

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

Python: n = int(input())
sentences = [str(input()) for i in range(n)]
for sentence in sentences:
	sentence = sentence.split(' ')
	for word in range(len(sentence)):
		if sentence[word] == 'Hoshino':
			sentence[word] = 'Hoshina'
	print(' '.join(sentence))

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

Python: # -*- coding: utf-8 -*-

import sys
import os

n = int(input())

for i in range(n):
    s = input().strip()

    if i == n - 1:
        print(s.replace('Hoshino', 'Hoshina'), end='')
    else:
        print(s.replace('Hoshino', 'Hoshina'))

Python: n=int(input())
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 "
			#print("Hoshina",end=" ")
		else:
			ans+=j+" "
			#print(j,end=" ")
	ans=ans[:-1]
	print(ans)

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

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

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

Python: import sys
 
def main():
  n = int(input())
  for _ in range(n):
    line = sys.stdin.readline()
    print(line.strip().replace("Hoshino", "Hoshina"))
 
if __name__ == "__main__":
  main()

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
    
print(n)

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

Python: # coding: utf-8
# Your code here!
n = int(input())
for i in range(n):
    s = input()
    print(s.replace("Hoshino", "Hoshina"))

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

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

Python: n = int(input())
for i in range(n):
    arr = list(input().split())
    for i in range(len(arr)):
        if arr[i] == 'Hoshino':
            arr[i] = 'Hoshina'
    for i in range(len(arr)-1):
        print(arr[i],end = ' ')
    print(arr[-1])

Python: # Hoshinori
# Hoshino's

n = int(input())
datasets=[None]*n
for i in range(n):
  datasets[i] = input()

def rep(a):
  if a == "Hoshino":
    return "Hoshina"
  elif a == "Hoshino's":
    return "Hoshina's"
  elif a == "Hoshino,":
    return "Hoshina,"
  else:
    return a

for data in datasets:
  words = data.split(" ")
  words = list(map(rep,words))
  print(" ".join(words))

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

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