Problem:


Aizu PR

An English booklet has been created for publicizing Aizu to the world.
When you read it carefully, you found a misnomer (an error in writing) on the last name of Masayuki Hoshina, the lord of the Aizu domain. The booklet says "Hoshino" not "Hoshina".

Your task is to write a program which replace all the words "Hoshino" with "Hoshina". You can assume that the number of characters in a text is less than or equal to 1000.

Input

The input consists of several datasets. There will be the number of datasets n in the first line. There will be n lines. A line consisting of english texts will be given for each dataset.

Output

For each dataset, print the converted texts in a line.

Sample Input

3
Hoshino
Hashino
Masayuki Hoshino was the grandson of Ieyasu Tokugawa.

Output for the Sample Input

Hoshina
Hashino
Masayuki Hoshina was the grandson of Ieyasu Tokugawa.



Sample input:
3
Hoshino
Hashino
Masayuki Hoshino was the grandson of Ieyasu Tokugawa.


Sample output:
Hoshina
Hashino
Masayuki Hoshina was the grandson of Ieyasu Tokugawa.

Submission status: Wrong Answer

Solution code:
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)

Submission status: Wrong Answer

Solution code:
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=" ")

Submission status: Wrong Answer

Solution code:
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)

Submission status: Wrong Answer

Solution code:
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)

Submission status: Wrong Answer

Solution code:
n = int(raw_input())

for i in range(n):
    text = map(str,raw_input().split())
    
    m = len(text)
    
    for i in range(m):
        if text[i] == 'Hoshino':
            print 'Hoshina',
        else:
            print text[i],
    print ''

Submission status: Wrong Answer

Solution code:
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()

Submission status: Wrong Answer

Solution code:
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()

Submission status: Wrong Answer

Solution code:
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)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
N = int(raw_input())
for i in range(N):
    lis = raw_input().split()
    ans = []
    for st in lis:
        if 'Hoshino' in st:
            s = st.find('Hoshino')
            ans.append(st[:s]+'Hoshina'+st[s+7:])
        else:
            ans.append(st)
    else:
        print ' '.join(ans)

Submission status: Wrong Answer

Solution code:
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)

Submission status: Wrong Answer

Solution code:
#!/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])

Submission status: Wrong Answer

Solution code:
#!/usr/bin/env python3

import sys
input_lines = [i[:-1].split(' ') for i in sys.stdin.readlines()]
str = ""
input_lines.remove(input_lines[0])
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])

Submission status: Wrong Answer

Solution code:
n = int(raw_input())
for i in range(n):
    a = map(str,raw_input().split())
#    print a
    if 'Hoshino' in a:
        a[a.index('Hoshino')] = 'Hoshina'
    print ' '.join(a)

Submission status: Wrong Answer

Solution code:

for i in xrange(input()):
    word = map(str,raw_input().split())
    for j in xrange(len(word)):
        if word[j] == "Hoshino":
            print "Hoshina",
        else:
            print word[j],
    print ""

Submission status: Wrong Answer

Solution code:
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)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
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)

Submission status: Wrong Answer

Solution code:
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))

Submission status: Wrong Answer

Solution code:
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("")

Submission status: Wrong Answer

Solution code:
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])

Submission status: Wrong Answer

Solution code:
import sys

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

if __name__ == "__main__":
  main()

Submission status: Wrong Answer

Solution code:
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)

Submission status: Wrong Answer

Solution code:
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)

Submission status: Wrong Answer

Solution code:
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)

Submission status: Wrong Answer

Solution code:
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)

Submission status: Wrong Answer

Solution code:
time=input()

for i in range(time):
    line=map(str,raw_input().split())
    for j in line:
        if j=="Hoshino":
            num=line.index("Hoshino")
            line[num]="Hoshina"
    for k in line:
        print k,
    print ""

Submission status: Wrong Answer

Solution code:
time=input()

for i in range(time):
    line=map(str,raw_input().split())
    for j in line:
        if j=="Hoshino":
            num=line.index("Hoshino")
            line[num]="Hoshina"
        if j=="Hoshino.":
            num=line.index("Hoshino.")
            line[num]="Hoshina."
    for k in line:
        print k,
    print ""

Submission status: Wrong Answer

Solution code:
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])

Submission status: Wrong Answer

Solution code:
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])

Submission status: Wrong Answer

Solution code:
n=input()
for i in range(n):
	s=raw_input().split()
	for j in range(len(s)):
		if s[j]=="Hoshino":
			s[j]="Hoshina"
	print ' '.join(s)

Submission status: Wrong Answer

Solution code:
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))

Submission status: Wrong Answer

Solution code:
# 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))

Submission status: Wrong Answer

Solution code:
# 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))

Submission status: Wrong Answer

Solution code:
# 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))

Submission status: Wrong Answer

Solution code:
# 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))

Submission status: Wrong Answer

Solution code:
# 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))

Submission status: Wrong Answer

Solution code:
# 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))

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
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'

Submission status: Wrong Answer

Solution code:
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])

Submission status: Wrong Answer

Solution code:
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])

Submission status: Wrong Answer

Solution code:
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])

Submission status: Wrong Answer

Solution code:
num = int(input())

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

Submission status: Wrong Answer

Solution code:
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("")

Submission status: Wrong Answer

Solution code:
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("")

Submission status: Wrong Answer

Solution code:
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("")

Submission status: Wrong Answer

Solution code:
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("")

Submission status: Wrong Answer

Solution code:
# 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

Submission status: Wrong Answer

Solution code:
count = int(input())
for i in range(count):
  hoge = map(str,raw_input().split())
  for j in range(0,len(hoge)):
    if hoge[j] == "Hoshino":
      hoge[j] = "Hoshina"
      continue
    else:
      continue

  for j in range(0,len(hoge)):
      print hoge[j],
  print ""

Submission status: Wrong Answer

Solution code:
import sys
R = lambda:map(int,raw_input().split())

n = int(raw_input())
for i in xrange(n):
    s = raw_input().split()
    for j in xrange(len(s)):
        if s[j] == 'Hoshino': s[j] = 'Hoshina'
    print " ".join(s)

Submission status: Wrong Answer

Solution code:
import sys
R = lambda:map(int,raw_input().split())

n = int(raw_input())
for i in xrange(n):
    s = raw_input().split()
    for j in xrange(len(s)):
        if s[j] == 'Hoshino': s[j] = 'Hoshina'
        elif s[j] == 'Hoshino.': s[j] = 'Hoshina.'
    print " ".join(s)

Submission status: Wrong Answer

Solution code:
#!/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()

Submission status: Wrong Answer

Solution code:
#!/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()

Submission status: Wrong Answer

Solution code:
n = int(raw_input())
for i in range(n):
    inp = map(str, raw_input().split())
    for j in range(len(inp)):
        if inp[j][:7] == "Hoshino":
           inp[j] = "Hoshina" + inp[j][7:]
    print " ".join(map(str, inp))

Submission status: Wrong Answer

Solution code:
n = int(raw_input())
for i in range(n):
    inp = map(str, raw_input().split())
    for j in range(len(inp)):
        if inp[j][:7] == "Hoshino":
            inp[j] = "Hoshina" + inp[j][7:]
        elif inp[j][:8] == "Hoshino":
            inp[j] = inp[j][:7] + "a" + inp[j][8:]
    print " ".join(map(str, inp))

Submission status: Wrong Answer

Solution code:
n = int(raw_input())
for i in range(n):
	msg = map(str,raw_input().split())
	for i in range(len(msg)):
		if msg[i][:7] == "Hoshino":
			msg[i] = "Hoshina"+msg[i][7:]
	print " ".join(map(str, msg))

Submission status: Wrong Answer

Solution code:
for i in [0]*input():print raw_input().replace("hino","hina")

Submission status: Accepted

Solution code:
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])

Submission status: Accepted

Solution code:
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)

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
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)

Submission status: Accepted

Solution code:
n = int(raw_input())

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
for _ in range(input()): print raw_input().replace("Hoshino","Hoshina")

Submission status: Accepted

Solution code:
H='Hoshin'
n=input()
for s in range(n): print raw_input().replace(H+'o',H+'a')

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
#!/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()

Submission status: Accepted

Solution code:
n=int(raw_input())
for i in range(n):
    w=raw_input()
    if len(w)<7:
        print w
    else:
        for i in range(len(w)-6):
            if w[i:i+7]=="Hoshino":
                w=w[:i]+"Hoshina"+w[i+7:]
        print w

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
n = int(raw_input())
for i in [raw_input().replace("Hoshino", "Hoshina") for i in range(n)]:
	print i

Submission status: Accepted

Solution code:
n = int(raw_input())
for i in range(n):
    print raw_input().replace('Hoshino','Hoshina')

Submission status: Accepted

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

Submission status: Accepted

Solution code:
for i in range(input()): print raw_input().replace("Hoshino", "Hoshina")

Submission status: Accepted

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

Submission status: Accepted

Solution code:
N = int(raw_input())
for i in range(N):
    lis = raw_input().split(' ')
    ans = []
    for st in lis:
        if 'Hoshino' in st:
            while 'Hoshino' in st:
                s = st.find('Hoshino')
                st = st[:s]+'Hoshina'+st[s+7:]
            else:
                ans.append(st)
        else:
            ans.append(st)
    else:
        print ' '.join(ans)

Submission status: Accepted

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

Submission status: Accepted

Solution code:
n = int(raw_input())

for i in range(n):
    S = raw_input()
    R = S.replace('Hoshino', 'Hoshina')
    print R

Submission status: Accepted

Solution code:
n = int(input())
for i in range(n):
    L = raw_input()
    print L.replace("Hoshino", "Hoshina")

Submission status: Accepted

Solution code:
n = int(raw_input())
for r in range(n):
	print raw_input().replace("Hoshino", "Hoshina")

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
for i in xrange(input()): print raw_input().replace("Hoshino","Hoshina")

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
import sys

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
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)

Submission status: Accepted

Solution code:
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])

Submission status: Accepted

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

Submission status: Accepted

Solution code:
ans = []
n = int(input())

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

for i in ans:
    print(i)

Submission status: Accepted

Solution code:
n = int(input())

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
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()

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
for line in range(int(input())):
    print(input().replace('Hoshino', 'Hoshina'))

Submission status: Accepted

Solution code:
n = int(input())

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
n=input()
for i in range(n):
	s=raw_input()
	print s.replace("Hoshino", "Hoshina")

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
# -*- coding: utf-8 -*-

import sys
import os

n = int(input())

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

Submission status: Accepted

Solution code:
# coding: utf-8

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

Submission status: Accepted

Solution code:
import string

n=int(input())

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
num = int(input())

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

Submission status: Accepted

Solution code:
# -*- 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:])

Submission status: Accepted

Solution code:
# 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"))

Submission status: Accepted

Solution code:
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)

Submission status: Accepted

Solution code:
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()

Submission status: Accepted

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

Submission status: Accepted

Solution code:
# coding:utf-8

inputCount = int(input())

while 0 < inputCount:

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

    inputCount -= 1