lister = input() if lister.count('treeone')>0: result = lister.replace('treeone','forest') else: result = lister print(result)