#include <stdio.h>
main()
{
    int t,x; 
    t=0;
    scanf("%d",&x);
    while (x!=0)
    {
    x=x/10;
    t++;
    }
    printf("%d", t); 
}