#include using namespace std; using ll = long long; int main() { string s; cin >> s; string t; int n = s.size(); for(int i = 0; i < n; i++) { if(s.substr(i, 7) == "treeone") { t += "forest"; i += 6; } else { t.push_back(s[i]); } } cout << t << endl; }