def input_data_set
  data_count = gets.strip.to_i
  return data_sets if data_count.nil? || data_count.to_i == 0
  data_count.times.map{ gets.strip }
end

data_set = input_data_set
=begin
data_set = [
  "Hoshino",
  "Hashino",
  "Masayuki Hoshino was the grandson of Ieyasu Tokugawa.",
]
=end

puts data_set.map{ |s| s.gsub(/Hoshino/, "Hoshina") }.join("\n")