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