# No.725 木は明らかに森である print(input().replace('treeone', 'forest'))