#include <iostream>
#include <regex>
using namespace std;

int main() {
	string s;
	cin >> s;
	cout << regex_replace(s, regex("treeone"), "forest") << endl;
}