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