#include <iostream>
#define ll long long
using namespace std;

int main()
{
    ios_base::sync_with_stdio(false);
    cin.tie(0);
    cout.tie(0);
    
    ll a, b;
    while(cin >> a >> b)
    {
        ll ans, cnt = 0;
        ans = a+b;
        while(ans)
        {
            ans /= 10;
            cnt++;
        }
        cout << cnt << "\n";
    }
    return 0 ;
}

