package yukicoder; import java.util.Scanner; public class N423 { public static void main(String[] args){ Scanner sc = new Scanner(System.in); String in = sc.nextLine(); System.out.println(in.equals("ham") ? "ham" : in + "ham"); } }