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