#include <iostream> #include <math.h> using namespace std; int main(){ string str; cin>>str; if(str != "ham") str = str+"ham"; cout << str<<endl; }