#encoding:utf-8 No.0101 2014.10.8
n = gets.chomp.to_i
sentence = Array.new(n)
n.times do |i|
  sentence[i] = gets.chomp
  if sentence[i] =~ /Hoshino/
    sentence[i].gsub!(/Hoshino/,"Hoshina")
  end
end

puts sentence