#include using namespace std; #define FOR(i,l,r) for(int i = (l);i < (r);i++) #define ALL(x) (x).begin(),(x).end() template void chmax(T& a,const T& b){if(a < b) a = b;} template void chmin(T& a,const T& b){if(b < a) a = b;} typedef long long ll; string S; int main() { cin >> S; if(S != "ham"){ S += "ham"; } cout << S << endl; return 0; }