#include<iostream>
using namespace std;
int main(){

    int a, b, count = 1;
    cin >> a >> b;
    int sum = a + b;
    while(sum < 10){
        sum /= 10;
        count++;
    }
    cout << count << endl;
}