// macros #include <iostream> #include <iomanip> #include <algorithm> #include <vector> #include <string> #include <map> using namespace std; typedef long long ll; typedef pair<int,int> pii; #define LLINF 1000000000000000000LL #define FOR(i,a,b) for(int i=(int)(a);i<(int)(b);i++) #define debug(a) cout << "L(" << __LINE__ << "):" << #a << ":" << a << endl; // problems limits #define MAX_N 100000 // Variables string S; // problems input void input() { cin >> S; } // problems main void solve() { if(S != "ham") S+= "ham"; cout << S << endl; } int main() { ios::sync_with_stdio(false); input(); solve(); }