#include #include using namespace std; int main(void) { cin.tie(0); ios::sync_with_stdio(false); string s; cin >> s; s = regex_replace(s, regex("treeone"), "forest"); cout << s; return 0; }