print(({io.stdin:read("*l"):gsub("treeone","forest")})[1])