#include <iostream>
#include <cmath>

using namespace std;

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