#include "bits/stdc++.h" using namespace std; int main() { string S, T = ""; cin >> S; for (int i = 0; i < S.size(); i++) { if (S.substr(i, 7) == "treeone") T = T + "forest", i+=6; else T = T + S[i]; } cout << T << endl; }