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