#include <stdio.h>
#include<string.h>
int main(void)
{
FILE *fp1, *fp2;
char fname1[256], fname2[256], fname3[256], str[256];
int ch, line, col, linecnt=1, colcnt=1, out=0;
if ((fp1
= fopen(fname1
, "rt")) == NULL
) { printf("Can't open input file(%s)\n", fname1
); return 1;
}
if ((fp2
= fopen(fname2
, "w")) == NULL
) { printf("Can't open output file(%s)\n", fname2
); return 1;
}
while ((ch
= fgetc(fp1
)) != EOF
) { if (out == 0 && line == linecnt && col == colcnt){
out = 1;
}
if (ch == '\n') {
linecnt++;
colcnt = 1;
}else{
colcnt++;
}
}
return 0;
}
I2luY2x1ZGUgPHN0ZGlvLmg+CiNpbmNsdWRlPHN0cmluZy5oPgogCmludCBtYWluKHZvaWQpCnsKRklMRSAqZnAxLCAqZnAyOwpjaGFyIGZuYW1lMVsyNTZdLCBmbmFtZTJbMjU2XSwgZm5hbWUzWzI1Nl0sIHN0clsyNTZdOwppbnQgY2gsIGxpbmUsIGNvbCwgbGluZWNudD0xLCBjb2xjbnQ9MSwgb3V0PTA7CiAKcHJpbnRmKCJmaWxlbmFtZToiKTsgc2NhbmYoIiVzIiwgZm5hbWUxKTsKaWYgKChmcDEgPSBmb3BlbihmbmFtZTEsICJydCIpKSA9PSBOVUxMKSB7CnByaW50ZigiQ2FuJ3Qgb3BlbiBpbnB1dCBmaWxlKCVzKVxuIiwgZm5hbWUxKTsKcmV0dXJuIDE7Cn0Kc3RyY3B5KGZuYW1lMiwgZm5hbWUxKTsKc3RyY2F0KGZuYW1lMiwgIi5vdXQiKTsKaWYgKChmcDIgPSBmb3BlbihmbmFtZTIsICJ3IikpID09IE5VTEwpIHsKcHJpbnRmKCJDYW4ndCBvcGVuIG91dHB1dCBmaWxlKCVzKVxuIiwgZm5hbWUyKTsKZmNsb3NlKGZwMSk7CnJldHVybiAxOwp9CiAKc3RyY3B5KGZuYW1lMywgZm5hbWUxKTsKc3RyY2F0KGZuYW1lMywgIi5iYWsiKTsKcmVtb3ZlKGZuYW1lMyk7C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