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