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