#include #include #include main() { char s[160001]; char buf[17]; int n; s[0] = '\0'; n = 0; while (n < 10000 && fread(buf, 1, 16, stdin) == 16) { buf[16] = '\0'; if (strchr(buf, 'A') != NULL) { strcat(s+n*16, buf); n++; } } write(1, s, n*16); exit(0); }