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