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

for _ in range(n):
    sentence = input()
    result = sentence.replace('Hoshino', 'Hoshina')
    print(result)

Python: n = int(input())
dataset = [input().replace("Hoshino", "Hoshina") for _ in range(n)]
print(*dataset, sep="\n")

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

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

Python: n = int(input())

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

Python: input()
try:
    while True:
        str = input()
        print(str.replace("Hoshino","Hoshina"))
except EOFError:
    pass

Python: import heapq
from collections import deque
from enum import Enum
import sys
import math
from _heapq import heappush, heappop
import copy
from test.support import _MemoryWatchdog

BIG_NUM = 2000000000
HUGE_NUM = 99999999999999999
MOD = 1000000007
EPS = 0.000000001
sys.setrecursionlimit(100000)


FROM = "Hoshino"
TO = "Hoshina"

P_length = 7

num_case = int(input())

for _ in range(num_case):
    print("%s"%(input().replace(FROM, TO))) #Python3では文字列がイミュータブル

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

Python: import string

n=int(input())

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

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

Python: n = int(input())
arr = ['']*n
for i in range(n):
    arr[i] = list(input().split())

for i in range(n):
    for j in range(len(arr[i])):
        if arr[i][j] == 'Hoshino':
            arr[i][j] = 'Hoshina'
for i in range(n):
    for j in range(len(arr[i])-1):
        print(arr[i][j],end = ' ')
    print(arr[i][-1])

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

Python: import sys

def main():
  for line in sys.stdin:
    print(line.strip().replace("Hoshino", "Hoshina"))

if __name__ == "__main__":
  main()

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

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

Python: num = int(input())

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

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

Python: import sys
import math

r = sys.stdin.readlines()

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

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

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: n = int(input())
dataset = [input().replace("Hoshino", "Hoshina") for _ in range(n)]
print(*dataset, sep="\n")

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

Python: n = int(input())

key = 'Hoshino'

for i in range(n):
    line = input()

    while (1):
        key_pos = line.find(key)
        
        if key_pos != -1:
            line = line[:key_pos] + 'Hoshina' + line[key_pos + len('Hoshina'):]
        else:
            break
    
    print(line)

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 _ in range(n):
    string = input()
    answer = string.replace('Hoshino', 'Hoshina')
    print(answer)

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

def rep(a):
  if a == "Hoshino":
    return "Hoshina"
  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):
    s = input()
    print(s.replace("Hoshino", "Hoshina"))

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

""" n = int(input())
for i in range(n):
    # 一度にlist(map(int,input().split()))しようとすると1単語時にエラー
    S = input()
    string = [t for t in S.split()]
    for word in string:
        if word=="Hoshino":
            word = "Hoshina"
        elif word=="hoshino":
            word = "hoshina"
        print(word,end=" ")
    print("") """

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


def main(readline=stdin.readline):
    sub = re.compile(r'\bHoshino\b').sub
    for _ in range(int(readline())):
        print(sub('Hoshina', readline()), end='')
    exit()


if __name__ == '__main__':
    main()

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

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

for i in ans:
    print(i)

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: #!/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())):
        print(readline().replace('Hoshino', 'Hoshina'), end='')
    exit()


if __name__ == '__main__':
    main()

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.replace(' ','')
  print(a)

Python: import re
for _ in [0]*int(input()):
    print(re.sub(r"Hoshino", "Hoshina", input()))

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

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

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

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

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

Python: import sys

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

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.rstrip()
  print(a)

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

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

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

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

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

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