// // Created by popop on 2025/08/15. // #include #include #include #include #include using namespace std; std::string replaceOtherStr(std::string &replacedStr, std::string from, std::string to) { const unsigned int pos = replacedStr.find(from); const int len = from.length(); if (pos == std::string::npos || from.empty()) { return replacedStr; } return replacedStr.replace(pos, len, to); } int main() { string s; cin >> s; if (s.length() >= 7) { replaceOtherStr(s, "treeone", "forest"); } cout << s << endl; }