#include using namespace std; typedef long long ll; string str; int main(void){ // Your code here! cin >> str; for (ll i = 0; i < str.length(); i++){ if (i + 6 < str.length() && str.substr(i, 7) == "treeone"){ cout << "forest"; i += 6; } else { cout << str[i]; } } }