#include #include #define rep(i,n) for(i=0;i<(int)(n);i++) using namespace std; typedef long long ll; typedef unsigned long long ull; string s; const string t="treeone",tt="forest"; int main(){ int i,j; string ans=""; cin>>s; auto judge=[&](int head)->bool{ int i; rep(i,t.length())if(s[head+i]!=t[i])return false; return true; }; i=0; while(i