S = input() while "treeone" in S : S = S.replace("treeone","forest") print(S)