w = input() w = w.replace('treeone', 'forest', 100) print(w)