#include "bits/stdc++.h" using namespace std; typedef long long ll; #define rep(i,n) for(int i=0;i<(int)(n);i++) int gcd(int a,int b){return b?gcd(b,a%b):a;} int main() { cin.tie(0); ios::sync_with_stdio(false); string s; int n; cin >> s; n=-6; while ((n=(int)s.find("treeone",n+6))>=0) s.replace(n,7,"forest"); cout << s << endl; return 0; }