s=input() s1=s.replace("treeone","forest") print(s1)