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