using System; namespace Yukicoder { class Program { static void Main(string[] args) { var line = Console.ReadLine(); if(line == "ham") { Console.WriteLine(line); }else { Console.WriteLine(line + "ham"); } } } }