char*p,*q,s[99];main(){for(p=gets(s);*p;p+=1+printf((q=strstr(p,"treeone"))?*q=0,"%sforest":"%s",p));}