#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; size_t pos = 0; while ((pos = s.find("treeone", pos)) != str::npos) { s.replace(pos, 7, "forest"); pos += 6; } cout << s; return 0; }