#include <stdio.h>
#include <ctype.h>

void main(void)
{
  int c;
  int count[26];
  int index;

  index = 0;
  while (index < 26)
  {
    count[index] = 0;
    index++;
  }

  c = getchar();
  while (c != EOF)
  {
    c = toupper(c);
    if (isalpha(c)) count[c - 'A']++;
    c = getchar();
  }
  printf("The A count is: %d\n", count[0]);
  printf("The Z count is: %d\n", count[25]);
}
