#include <bits/stdc++.h>
using namespace std;
int main(void){
    int a,b,c,i;
    while ( scanf("%d %d",&a,&b) !=EOF ) {
        c = a + b;
        int count = 0;
        for (i=0;c!=0;i++) {
            c /= 10;
        }
        printf("%d\n",i);
    }
}

