#include using namespace std; typedef unsigned long long ull; typedef long long ll; typedef string str; const ll mod = 1e9 + 7; int main() { ios_base::sync_with_stdio(false); cin.tie(0); cout.tie(0); str s; cin >> s; while (s.find("treeone") != str::npos) s.replace(s.find("treeone"), 7, "forest"); cout << s; return 0; }