#include <stdio.h>
#include <math.h>

int main() {
  int n_space = 0, n_digit = 0, n_other = 0;
  char ch;
  
  while ((ch = getchar()) != EOF) { 

    switch (ch) {
    case '0': case '1': case '2': case '3': case '4': case '5':
    case '6': case '7': case '8': case '9': 
      n_digit++; break;
    case '\n': case '\t': case ' ':
      n_space++; break;
    default:
      n_other++; break;
    }
  }
  
  printf("Die Anzahl Digits = d\n", n_digit);
  printf("Die Anzahl Space = d\n", n_space);
  printf("Der Rest = d\n", n_other);

  return(0);
}
