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