#include<iostream> #include<vector> #include<string> #include<algorithm> int main() { std::string s; std::cin >> s; if (s != "ham") s += "ham"; std::cout << s << std::endl; return 0; }