#include using namespace std; typedef long long ll; #define REP(i,n) for(int i=0; i #define VLL vector #define VVI vector> #define VVLL vector> #define VC vector #define VS vector #define VVC vector> #define fore(i,a) for(auto &i:a) typedef pair P; template bool chmax(T &a, T b) { if (a < b) { a = b; return true; } return false; } template bool chmin(T &a, T b) { if (a > b) { a = b; return true; } return false; } const int INF = 2147483647; const ll INFL = 9223372036854775807; const ll mod = 1000000007; int main() { string s; cin >> s; string t = ""; int i = -1; while (true) { i += 3; if (i >= s.size())break; if (i == s.size())t += '0'; else if (i + 1 == s.size())t += '0'; else if (s[i + 1] == 'u') { i++; t += '1'; } else t += '0'; } ll n = 0; reverse(ALL(t)); REP(i, t.size()) { if (t[i] == '1') { n += pow(2, i); } } n += n; bool b = false; for (int i = 20; i >= 0; i--) { if (n&(1 << i)) { b = true; cout << "hamu"; } else if (b)cout << "ham"; } cout << endl; return 0; }