#include <iostream>
#include <string>
using namespace std;
int main()
{
string sentence = "i like coding";
string find_str = "coding";
string replace_str = "history";
//문자열을 교체할때 replace함수를 쓴다.
//문자열.replace(교체하고 싶은 단어, 교체하고 싶은 단어의 길이, 교체할 문자);
sentence.replace(sentence.find(find_str), find_str.length(), replace_str);
cout << sentence << endl;
return 0;
}