#include<bits/stdc++.h>

using namespace std;

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