#include<iostream>
using namespace std;

int main(void){
    int a, b, sum, cnt;
    for(cin >> a >> b){
        cnt = 0;
        sum = a+b;
        while(sum){
            sum/=10;
            cnt++;
        }
        cout << cnt <<endl;
    }
    return 0;
}