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