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