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