s = gets.chomp if s != "ham" s += "ham" end puts s