#include <iostream>
#include <string>
using namespace std;
int main() {
string s = "hello,world!";
s.erase(5, 1);
int pos = s.find("world");
s.append(2, '!');
string res = s.substr(pos, 5);
cout << res << endl;
return 0;
}