#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 ) {
      if( isalpha( buff[i] )) {
        ++alphabet;
      }
      else if( isdigit( buff[i] )) {
        ++numeric;
      }
      else {
        ++other;
      }
    }
  }

  printf( "num=%ju, alpha=%ju, other=%ju\n", numeric, alphabet, other );
}
