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