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