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: import sys

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

if __name__ == "__main__":
  main()

Python: for i in range(int(input())):
    ls = list(input().split())
    for s in ls:
        if s == "Hoshino":
            ls[ls.index(s)] = "Hoshina"
    print(*ls)

Python: num = int(input())

for _ in range(num):
    print(
        input().replace("Hoshino","Hoshina")
        )

Python: import sys
a = input()
a = sys.stdin.read()
print(a.replace('Hoshino','Hoshina'))

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: n = int(input())
for i in range(n):
    data = list(input())
    for a in range(len(data)):
        if a>=6:
            if data[a-6] == "H" and data[a-5]=="o" and data[a-4]=="s" and data[a-3]=="h" and data[a-2]=="i" and data[a-1]=="n" and data[a]=="o" :
                data[a] = "a"
    new = "".join(data)
    print(new)

Python: import sys

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

if __name__ == "__main__":
  main()

Python: # coding=utf-8

###
### for python program
###

import sys
import math

# math class
class mymath:
    ### pi
    pi = 3.14159265358979323846264338

    ### Prime Number
    def pnum_eratosthenes(self, n):
        ptable = [0 for i in range(n+1)]
        plist = []

        for i in range(2, n+1):
            if ptable[i]==0:
                plist.append(i)
                for j in range(i+i, n+1, i):
                    ptable[j] = 1
        return plist

    ### GCD
    def gcd(self, a, b):
        if b == 0:
            return a
        return self.gcd(b, a%b)

    ### LCM
    def lcm(self, a, b):
        return (a*b)//self.gcd(a,b)

    ### Mat Multiplication
    def mul(self, A, B):
        ans = []
        for a in A:
            c = 0
            for j, row in enumerate(a):
                c += row*B[j]
            ans.append(c)
        return ans

mymath = mymath()

### output class
class output:
    ### list
    def list(self, l):
        l = list(l)
        #print(" ", end="")
        for i, num in enumerate(l):
            print(num, end="")
            if i != len(l)-1:
                print(" ", end="")
        print()

output = output()

### input sample
#i = input()
#N = int(input())
#A, B, C = [x for x in input().split()]
#N, K = [int(x) for x in input().split()]
#inlist = [int(w) for w in input().split()]

#R = float(input())
#A.append(list(map(int,input().split())))

#for line in sys.stdin.readlines():
#    x, y = [int(temp) for temp in line.split()]

#abc list
#abc = [chr(ord('a') + i) for i in range(26)]

### output sample
# print("{0} {1} {2:.5f}".format(A//B, A%B, A/B))
# print("{0:.6f} {1:.6f}".format(R*R*math.pi,R*2*math.pi))
# print(" {}".format(i), end="")

# def printA(A):
#     for i, n in enumerate(A):
#         print(n, end='')
#         if i != N-1:
#             print(' ', end='')
#     print()

# リスト内包表記 ifあり
# [x-k if x != 0 else x for x in C]

# ソート
# N = N.sort()

# 10000個の素数リスト
# P = mymath.pnum_eratosthenes(105000)

def get_input():
    N = []
    while True:
        try:
            N.append(input())
            #N.append(int(input()))
            #N.append(float(input()))
        except EOFError:
            break
    return N

def is_integer(n):
    try:
        float(n)
    except ValueError:
        return False
    else:
        return float(n).is_integer()

def dist(A, B):
    d = 0
    for i in range(len(A)):
        d += (A[i]-B[i])**2            
    d = d**(1/2)
    return d

N = int(input())
ans = []

for i in range(N):
    s = input()
    ans.append(s.replace('Hoshino', 'Hoshina'))

for s in ans:
    print(s)

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().strip().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: while (True):
    n=int(input())
    if n==0:
        break
    D=[]
    for k in range(1,int(n)+1):
       a=input()
       D.append(a)
    for i in D:
        
        A=i.replace('Hoshino','Hoshina')
        print (A)
    else:
        break

Python: for _ in range(int(input())):#標準入力から何個英文があるか取得する
    str1 = input() #英文を標準入力する
    print(str1.replace("Hoshino","Hoshina")) #"Hoshino"を"Hoshina"にする

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"
print(ans)

Python: #!/usr/bin/python3
for i in range(int(input())): print(input().replace('Hoshino', 'Hoshina'))

Python: n = int(input())

for i in range(n):
    s = list(input(). split())
    ans = []
    for j in s:
        if j == 'Hoshino':
            ans.append("Hoshina")
        else:
            ans.append(j)

    for j in range(len(s)):
        if j != len(s) - 1:
            print(ans[j], end = " ")
        else:
            print(ans[j])

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().replace("Hoshino","Hoshina"))
        
solve()

Python: n = int(input())

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

Python: for i in range(int(input())):
    print(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: for line in range(int(input())):
    print(input().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: [print(input().replace('Hoshino', 'Hoshina')) for _ in range(int(inpu()))]

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

Python: num = int(input())

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

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

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

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

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