#include <stdio.h>
#include <string.h>
int main( )
{
FILE *fp1;
FILE *fp2;
char filename1[100];
char filename2[100];
char filename3[100];
char str[100];
int line;
int cha;
int rowcnt=1;
int out=0;
if ((fp1
= fopen(filename1
, "rt")) == NULL
){ return 1;
}
if ((fp2
= fopen(filename2
, "w")) == NULL
) { return 1;
}
while ((cha
= fgetc(fp1
)) != EOF
) { out = 1;
}
if (cha == '\n') {
rowcnt++;
}
return 0;
}
I2luY2x1ZGUgPHN0ZGlvLmg+CiNpbmNsdWRlIDxzdHJpbmcuaD4KCmludCBtYWluKCApCgp7CglGSUxFICpmcDE7CglGSUxFICpmcDI7CgoJY2hhciBmaWxlbmFtZTFbMTAwXTsKCWNoYXIgZmlsZW5hbWUyWzEwMF07CgljaGFyIGZpbGVuYW1lM1sxMDBdOwoJY2hhciBzdHJbMTAwXTsKCglpbnQgbGluZTsKCWludCBjaGE7CglpbnQgcm93Y250PTE7CglpbnQgb3V0PTA7CiAgICAgCglwcmludGYoIuODleOCoeOCpOODq+WQjeOCkuWFpeWKm1xuIik7CglzY2FuZigiJXMiLCBmaWxlbmFtZTEpOwoKCWlmICgoZnAxID0gZm9wZW4oZmlsZW5hbWUxLCAicnQiKSkgPT0gTlVMTCl7CglwcmludGYoIuODleOCoeOCpOODq+OCquODvOODl+ODs+OBq+WkseaVl+OBl+OBvuOBl+OBn+OAgiIpOwoJcmV0dXJuIDE7Cgl9CgoJc3RyY3B5KGZpbGVuYW1lMiwgZmlsZW5hbWUxKTsKCXN0cmNhdChmaWxlbmFtZTIsICJidWNrdXAxIik7CgoJaWYgKChmcDIgPSBmb3BlbihmaWxlbmFtZTIsICJ3IikpID09IE5VTEwpIHsKCXByaW50Zigi44OV44Kh44Kk44Or44Kq44O844OX44Oz44Gr5aSx5pWX44GX44G+44GX44Gf44CCIik7CglmY2xvc2UoZnAxKTsKCXJldHVybiAxOwogICAgfQogICAgIAogICAgc3RyY3B5KGZpbGVuYW1lMywgZmlsZW5hbWUxKTsKICAgIHN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