#include<iostream>
#include<stdio.h>
#include<string>

using namespace std;

int main(){
    int a, b;
    float s;
    int d = 0;
    cin >> a >> b;
    s = a + b;
    do {
      s = s / 10.0;
      d++;
    } while(s >= 1.0);
    cout << d << endl;
    return 0;
}
