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