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