#include<cstdio>
#include<vector>
#include<algorithm>
#include<cmath>

using namespace std;

int main(){
    int a,b;
    while(scanf("%d %d",&a,&b)){
        a=log10(a+b)+1;
        printf("%d\n",a);
    }
    return 0;
}