import java.util.*; public class Exercise154 { public static void main(String[] args){ Scanner sc = new Scanner(System.in); String str = sc.next(); if(!str.equals("ham")){ str = str + "ham"; } System.out.println(str); } }