#include #include using namespace std; int main(){ string S; cin>>S; int x=0; while(x!=-1){ x=(int)S.find("treeone",x); if(x==(int)string::npos){ x=-1; }else{ S[x++]='f'; S[x++]='o'; S[x++]='r'; S[x++]='e'; S[x++]='s'; S[x++]='t'; S.erase(S.begin()+x); } } cout<