#include using namespace std; int main() { string S; cin >> S; int N = S.size(); S += 'h'; string bit = ""; for (int i = 0; i < N; i++) { if (S[i] == 'm') { if (S[i + 1] == 'u') { bit += '1'; } else if (S[i + 1] == 'h') { bit += '0'; } } } reverse(bit.begin(), bit.end()); int a = 0; for (int i = 0; i < bit.size(); i++) { if (bit[i] == '1') { a += 1 << i; } } a *= 2; string ans; while (a) { if (a % 2 == 1) { ans += "umah"; } else { ans += "mah"; } a /= 2; } reverse(ans.begin(), ans.end()); cout << ans; }