//Dev-C++ 5.11 (C)
#include
int main()
{FILE *inp,*outp,*para;
int n=1,i;
char c,ckar;
inp=fopen("input.txt","rt");
para=fopen("input.txt","rt");
outp=fopen("output.txt","wt");
c=fgetc(inp);
while (c!=EOF)
{if (c=='\n')
{if(n>6) for(i=0;i {ckar=fgetc(para);
fputc(ckar,outp);}
else
for(i=0;i ckar=fgetc(para);
n=0;}
c=fgetc(inp);
n++;}
if(n>6)
for(i=0;i {ckar=fgetc(para);
fputc(ckar,outp);}
else
for(i=0;i ckar=fgetc(para);
return 0;}