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