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