#include <stdio.h>
#include <string.h>
#include <ctype.h>
#include <stdlib.h>

int main()
{
    char title[200];
    int charCount =0;
    int hasLatter =0;
    
    if (fgets(title,sizeof(title),stdin)==NULL)
    {
        return 0;
    }
    
    title[strcspn(title,"\n")]=0;
    
    char *endptr;
    strtol(title,&endptr,10);
    
    if (*title !='\0'&& (*endptr == '\0'||*entptr == '\n'))
    {
        printf("Invalid input\n");
        return 0;
    }
    
    for (int i=0;title[i] !='\0'; i++)
    {
        if (isalpha(title[i])){
            charCount++;
            hasLetter = 1;
        }
    }
    printf ("%d\n",charCount);
    return 0;
}