#include <iostream>

using namespace std;

int main()
{
    int a;
    int b;
    int c;
    int digit=0;

    cin >> a;
    cin >> b;

    c = a+b;

    while (c>=1)
    {
        c = c/10;
        digit++;
    }

    cout << digit;

    return 0;
}