#include <iostream>
#include <algorithm>
#include <vector>
using namespace std;

int a, b;

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