#include #include using namespace std; int main() { string s; cin >> s; string befo = "treeone"; int pos; int len = befo.length(); while ((pos = s.find(befo)) != -1) { s.replace(pos, len, "forest"); } cout << s << endl; return 0; }