s = input() while s.count('treeone'): s = s.replace('treeone', 'forest ') for c in s: if c != ' ': print(c, end = '') print()