using System; class Program { static void Main() { string h = Console.ReadLine(); if (h != "ham") h += "ham"; Console.WriteLine(h); } }