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