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