// // Created by popop on 2025/08/15. // #include #include #include #include #include using namespace std; bool ReplaceOnce(std::string& s, const std::string& origin, const std::string& dest) { if (origin.empty()) return false; std::size_t pos = s.find(origin); if (pos == std::string::npos) return false; s.replace(pos, origin.size(), dest); return true; } int main() { string s; cin >> s; for (int _ = 0; _ < 25; _++) { ReplaceOnce(s, "treeone", "forest"); } cout << s << endl; }