#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,"x"); } while(s.find("x") != s.npos){ auto i = s.find("x"); s.replace(i,i+1,"forest"); } cout << s << endl; return 0; }