fun main(){println(readLine()!!.replace("treeone","forestone"))}