#include using namespace std; int main() { ios::sync_with_stdio(false); cin.tie(0); string s; cin >> s; if (s == "ham") { cout << "ham" << '\n'; } else { cout << s << "ham" << '\n'; } return 0; }