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