#include <stdio.h>
#include <stdint.h>
#include <ctype.h>
int main(){
char buff[4096];
size_t i,sz;
uintmax_t numeric = UINTMAX_C(0);
uintmax_t alphabet = UINTMAX_C(0);
uintmax_t other = UINTMAX_C(0);
for(;;){
sz
= fread( buff
, 1, sizeof(buff
), stdin
); if( sz == 0 ) break;
for( i = 0; i < sz; ++i ) {
++alphabet;
}
++numeric;
}
else {
++other;
}
}
}
printf( "num=%ju, alpha=%ju, other=%ju\n", numeric
, alphabet
, other
); }
I2luY2x1ZGUgPHN0ZGlvLmg+CiNpbmNsdWRlIDxzdGRpbnQuaD4KI2luY2x1ZGUgPGN0eXBlLmg+CgppbnQgbWFpbigpewogIGNoYXIgYnVmZls0MDk2XTsKICBzaXplX3QgaSxzejsKICB1aW50bWF4X3QgbnVtZXJpYyA9IFVJTlRNQVhfQygwKTsKICB1aW50bWF4X3QgYWxwaGFiZXQgPSBVSU5UTUFYX0MoMCk7CiAgdWludG1heF90IG90aGVyID0gVUlOVE1BWF9DKDApOwoKICBmb3IoOzspewogICAgc3ogPSBmcmVhZCggYnVmZiwgMSwgc2l6ZW9mKGJ1ZmYpLCBzdGRpbiApOwogICAgaWYoIHN6ID09IDAgKSBicmVhazsKICAgIGZvciggaSA9IDA7IGkgPCBzejsgKytpICkgewogICAgICBpZiggaXNhbHBoYSggYnVmZltpXSApKSB7CiAgICAgICAgKythbHBoYWJldDsKICAgICAgfQogICAgICBlbHNlIGlmKCBpc2RpZ2l0KCBidWZmW2ldICkpIHsKICAgICAgICArK251bWVyaWM7CiAgICAgIH0KICAgICAgZWxzZSB7CiAgICAgICAgKytvdGhlcjsKICAgICAgfQogICAgfQogIH0KCiAgcHJpbnRmKCAibnVtPSVqdSwgYWxwaGE9JWp1LCBvdGhlcj0lanVcbiIsIG51bWVyaWMsIGFscGhhYmV0LCBvdGhlciApOwp9Cg==