S = input() N = [] i = 1 while i <= len(S): if S[-i] == "u": i += 4 N.append(1) else: i += 3 N.append(0) ans = 0 for n in N[::-1]: ans *= 2 ans += n # print(ans) ans *= 2 A = bin(ans)[2:] for a in A: if a == "1": print("hamu", end="") else: print("ham", end="") print()