#include using namespace std; int main(void){ string S; cin >> S; if (S == "ham") { cout << "hamu" << endl; return 0; } S += "ham"; cout << S << endl; return 0; }