#include <stdio.h>
#include <math.h>
 
int main(void)
{
    int n;
    scanf("%d", &n);
    printf("%d", (int)log10(n) + 1);
}