#include <iostream>
#include <string>
#include <cstring>

using namespace std;
int main()
{
    int a,b;
    while(cin >> a >> b) {
        int sum = a + b;
        int cnt = 0;
        for(int i = 1;(sum / i) != 0; i *= 10) {
            cnt++;
        }
        cout << cnt << endl;
    }
}