#include #include int main() { char S[101]; fgets(S, 101, stdin); char *t, *s; for (s = S; (t = strstr(s, "treeone")) != NULL; s = t+7) { fwrite(s, 1, t-s, stdout); fwrite("forest", 1, 6, stdout); } fputs(s, stdout); return 0; }