#include #include #include int main (){ int j=1; char *m,*p,*g,*k,*z,*c; m=malloc(4500000); if(m==NULL){ printf("moc\n"); return 0; } p=m; while (scanf("%c",p)==1)p++; p++; *p=0; p=m; while(p!=NULL){ g=strstr(p,"God"); if(g==NULL)break; z=g; k=g; g++; p=g; while(*z!=10){ z--; } while(1){ k++; if(*k=='.')break; } for(c=z;c<=k;c++)printf("%c",*c); } printf("\n"); free(m); return 0; }