#include using namespace std; int main(){ string s; cin >> s; std::regex re(R"(treeone)"); std::string st(s); string rel = regex_replace(st,re,"forest"); cout << rel << endl; }