import java.io.PrintStream; import java.util.Scanner; public class Y423 { Y423() throws Exception { Scanner in = new Scanner(System.in); PrintStream out = new PrintStream(System.out); String s = in.next(); if ("ham".equals(s)) { out.println("ham"); } else { out.println(s + "ham"); } } public static void main(String argv[]) throws Exception { new Y423(); } }