word = input() if word >= "treeone": print(word.replace('treeone', 'forest')) else: print(word)