#include using namespace std; typedef long long ll; typedef pair pii; #define pb push_back #define mp make_pair #define rep(i,n) for(int i=0;i<(n);++i) int main(){ cin.tie(0); ios::sync_with_stdio(false); string s;cin >> s; int n=s.size(); string t="treeone",u="forest"; rep(i,n-6){ if(s.substr(i,7)==t) s=s.substr(0,i)+u+s.substr(i+7,n-i-7); } cout << s << endl; }