#include<stdio.h>
int main()
{
    char s;
    scanf("%c", &s);
    int l=len(s);
    printf("%d", l);
}