package yukicoder; import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; public class N423 { public static void main(String[] args) throws IOException { BufferedReader br=new BufferedReader(new InputStreamReader(System.in)); String str=br.readLine(); if(str.equals("ham")){} else { str=str+"ham"; } System.out.println(str); } }