#include #include #include #include #include #include #include using namespace std; #define diff(x,y) ((x > y) ? (x - y) : (y - x)) #define us(x) ((x > 0) ? x : x * -1) #define change(x) (x ? false : true) #define lli long long int int main() { int num = 0; string str; vector two; cin >> str; for (int i = 0; i < str.size(); i++) { if (str[i] == 'h') { if (str[i + 3] == 'u') two.push_back(1); else two.push_back(0); } } two.push_back(0); for (int i = 0; i < two.size(); i++) { if (two[i]) cout << "hamu"; else cout << "ham"; } cout << endl; return 0; }