#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(strdup(buf), 'A') != NULL) { strcat(s+n*16, buf); n++; } } write(1, s, n*16); exit(0); }