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