{-# LANGUAGE OverloadedStrings #-}

import qualified Data.Text as T
import qualified Data.Text.IO as T
import Control.Monad (replicateM)
import Control.Applicative ((<$>))

revise :: T.Text -> T.Text
revise = T.replace "Hoshino" "Hoshina"

main :: IO ()
main = do
    n <- readLn
    T.putStr . T.unlines =<< (replicateM n $ revise <$> T.getLine)