#include #include #include #define BIBLE 5000000 int main (){ int z; char *a, *b, *c, *x, *elka, *bible; elka=malloc(BIBLE); bible=elka; while(scanf("%c", bible)==1) bible++; bible=elka; while (1) { a=strstr(bible,"God"); b=a; c=a; bible=a+1; if(a==NULL){ break; } while (*b != 10) { b--; } b++; while(*c != '.') { c++; } x=(char *)malloc((c-b+2)*sizeof(char)); strncpy(x,b,c-b+1); x[c-b+1]= '\0'; printf("%s\n",x); free(x); } free(elka); return 0; }