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