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