txt = input() print(txt.replace('treeone','forest'))