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