#include<iostream>
using namespace std;

int main(){
    int a, b;
    cin >> a >> b;
    int sum = a + b;

    int result;
    while (true) {
        sum = sum / 10;
        result++;
        if (sum == 0) {
            break;
        }
    }
    cout << result << endl;

    return 0;
}