#include<bits/stdc++.h>
using namespace std;

const long long INF = 1LL << 60;
#define MOD 1000000007;

typedef long long ll;

#define writeln(n) cout<<n<<endl;

typedef pair<float, float> P;

typedef pair<string, int> Psi;

int d[15];
int main() {

	string s;
	cin>>s;




	for(int i=0; i<s.size(); i++){
		if(s.substr(i,7) =="treeone"){
			cout<<"forest";
			i += 6;
		}else {
			cout<<s[i];
		}
	}


}