#include <bits/stdc++.h>
using namespace std;

int calc_digit(long long N) {
    int res = 0;
    while (N) {
        ++res;
        N /= 10;
    }
    return res;
}
int main() {
    int a,b;
    while(scanf("%d %d",&a,&b)!=EOF){
        int ans=calc_digit(a+b);
        cout<<ans<<endl;
    }
}
