x=str(input()) if 'treeone' in x: place=x.find('treeone') print(place) result=x[:place] + "forest" + x[place+7:] x=result print(x)