#include #include using namespace std; int main(){ string a; cin >> a; if(a == "ham") cout << "ham" << endl; else cout << a + "ham" << endl; }