#include <bits/stdc++.h>
using namespace std;
int counter(int n);

int main(){
    int a, b, n;
    while(scanf("%d%d",&a,&b)!=EOF){
        n=counter(a+b);
        cout<<n<<endl;
    }
    return 0;
}

int counter(int n){
    int count1 = 0;
    while(n > 0)
    {
        // n = n/10
        n /= 10;
        ++count1;
    }
    return count1;
}