a = input() print(a.replace("treeone","forest"))