import java.util.Arrays; import java.util.HashSet; import java.util.LinkedList; import java.util.Scanner; import java.util.Set; public class Main { public static long toLong(String ham){ return Long.parseLong(ham.replace("hamu", "1").replace("ham", "0"), 2); } public static String toHamu(long val){ return Long.toBinaryString(val).replace("0", "ham").replace("1", "hamu"); } public static void main(String[] args) { Scanner sc = new Scanner(System.in); System.out.println(toHamu(toLong(sc.next()) * 2)); } }