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