#include "bits/stdc++.h" using namespace std; int main() { string N; cin >> N; if (N == "ham") cout << "ham" << endl; else cout << N << "ham" << endl; }