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