S = input() F = S.replace('treeone', 'forest') print (F)