import java.util.Scanner; import java.util.ArrayList; import java.util.Arrays; import java.util.Collections; class Main { public static void main(String[] args) { Scanner in = new Scanner(System.in); String n = in.next(); if(n.length() > 3) { System.out.println(n+"ham"); } else { System.out.println("ham"); } in.close(); } }