fun main() { println(readLine()!!.replace("tree", "forest")) }