#include <iostream>
using namespace std;

int digit(int num) {
    int cnt = 0;
    while(num != 0) {
        cnt++;
        num /= 10;
    }
    return(cnt);
}

int main(void) {
    int a, b;
    cin >> a >> b;
    
    cout << digit(a + b) << endl;
    
    return(0);
}