print(input().strip().replace('treeone', 'forest'))