Go: package main

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

func main() {
	stdin := bufio.NewScanner(os.Stdin)
	stdin.Scan()
	n, _ := strconv.Atoi(stdin.Text())

	for i := 0; i < n; i++ {
		stdin.Scan()
		fmt.Println(strings.Replace(stdin.Text(), "Hoshino", "Hoshina", -1))
	}
}

Python: #!/usr/bin/env python
from __future__ import division, print_function
from sys import stdin, exit


def main(readline=stdin.readline):
    for _ in range(int(readline())):
        words = readline().split()
        print(*('Hoshina' if w == 'Hoshino' else w for w in words))
    exit()


if __name__ == '__main__':
    main()

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

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

import sys
import os

n = int(input())

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

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

Python: n = int(input())

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

    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]
        sentence = after

    print(after)

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:j+6]='Hoshina'
            spam.append(s)

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

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

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):
    s = input()
    s = s.replace('Hoshino', 'Hoshina')
    print(s)

Python: 
 
#!/usr/bin/python
# -*- coding: utf-8 -*-
 
def main():
    # ??\???
    N = int(raw_input())
 
    inp = []
    for x in range(N):
        input_list = raw_input()
        inp.append(input_list)
 
    # ???????????????
    for x in inp:
        replaced = x.replace("Hoshino", "Hoshina")
        print(replaced)
 
if __name__=='__main__':
    main()

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: # coding:utf-8

inputCount = int(input())

while 0 < inputCount:

    content = input().replace("Hoshino", "Hoshina")
    print(content)

    inputCount -= 1

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: # 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"
  else:
    return a

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

Python: n = int(input())

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

    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":
                                    after = ""
                                    for j in range(i+6):
                                        after += sentence[j]
                                    after += "a"
                                    for j in range(i+7,length):
                                        after += sentence[j]
                                    sentence = after

    print(sentence)

Python: # coding:utf-8

inputCount = int(input())

while 0 < inputCount:

    content = input().split(" ")

    for index in range(0, len(content)):
        if content[index] == "Hoshino":
            content[index] = "Hoshina"

    print(" ".join(content))

    inputCount -= 1

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

import sys
import os

n = int(input())

for i in range(n):
    s = input().strip()
    print(s.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())
for i in range(n):
	print(input().replace("Hoshino","Hoshina"))

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

for i in range(int(input())): 
  textlist = []
  output = ""
  text = input()
  while 1:
    a = text.find("Hoshino")
    if a == -1 :
      textlist.append(text[a+1:])
      break  
    else:
      textlist.append(text[:a]) 
      textlist.append("Hoshina")
      text = text[(a+7):]   
  for j in textlist:
    output += j
  print(output)

Python: #!/usr/bin/python
# -*- coding: utf-8 -*-

def main():
    # 入力
    N = int(raw_input())

    inp = []
    for x in range(N):
        input_list = raw_input()
        inp.append(input_list)

    # 文字列置換
    for x in inp:
        replaced = x.replace("Hoshino", "Hoshina")
        print(replaced)

if __name__=='__main__':
    main()

Python: # Aizu Problem 0101: Aizu PR
#
import sys, math, os

# read input:
PYDEV = os.environ.get('PYDEV')
if PYDEV=="True":
    sys.stdin = open("sample-input.txt", "rt")


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

Python: # Hoshinori
# Hoshino's

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

def rep(a):
  punc = ["","'s",",",".",":",";","!","?","#","$","%","&","(",")","-","~,","-","<",">"]
  for p in punc:
    if a == "Hoshino"+p:
      return "Hoshina"+p
  return a

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

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

Python: if __name__ == '__main__':

	n = int(input())

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

Python: n = int(input())
t = []


for i in range(n):
    t.append(i)
    t[i] = input()
    t[i] = t[i].replace('Hoshino','Hoshina')

for i in range(n):
    print(t[i])

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

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

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