n=input() l=list() for i in range(len(n)): if n[i] == 'm' and i+1 < len(n): if n[i+1] == 'u': l.append(1) elif n[i+1] == 'h': l.append(0) elif n[i] == 'm' and i == len(n)-1: l.append(0) print(l) sum=0 for j in range(len(l)): sum += l[j] * 2**(len(l)-1-j) sum *= 2 #print(sum) amari=[] while sum != 0: amari.append(sum%2) sum //= 2 amari.reverse() if sum ==0: amari.append(0) #print(amari) hm=[] for k in range(len(amari)): if amari[k] == 0: hm.append("ham") else: hm.append("hamu") print("".join(hm))