// No.423 ハムスター語初級(数詞) // https://yukicoder.me/problems/no/423 // #include #include using namespace std; int main() { std::cin.tie(nullptr); std::ios::sync_with_stdio(false); string n; cin >> n; if (n == "ham") cout << n << endl; else cout << n << "ham" << endl; }