#include <iostream>
#include <cmath>

using namespace std;

int main (void) {
    int a, b, sum;
    cin >> a;
    cin >> b;
    sum = a + b;
    if (sum == 0) cout << 1;
    else cout << (int)(log10(sum) + 1);
    return 0;
}