#include <stdio.h>

int main( void ){
    int a,b;
    scanf( "%d %d",&a,&b );
    a = a + b;

    int n = 1;
    int j = 0;
    while( a / n > 0 ){
        n *= 10;
        j++;
    }

    printf( "%d",j );
    