#include #include int main(void) { int i = 0, j; char str[101], tree[] = "treeone", temp[8]; scanf("%s", str); while(str[i] != '\0'){ for(j = 0; j < 7; j++){ temp[j] = str[i + j]; } if(strcmp(temp, tree) == 0){ printf("forest"); i += 7; }else{ printf("%c", str[i++]); } } puts(""); return 0; }