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