#include using namespace std; int main(){ string h,t="treeone",f="forest"; cin>>h; size_t mon=h.find(t); while(string::npos!=mon){ h.replace(mon,t.length(),f); mon=h.find(t,mon+f.length()); } cout<