#include #include using namespace std; int main(){ string s; cin >> s; string::size_type pos = 0; while((pos = s.find("treeone")) != string::npos){ s.replace(pos, 7, "forest"); pos += 6; } cout << s << endl; return 0; }