S = input() print(S.replace("treeone", "forest",100))