#include<iostream>
#include<algorithm>
#include<cmath>

using namespace std;

int main() {
  int a;
  int b;
  cin >> a >> b;
  if (a + b == 0) {
    printf("%d\n", 1);
  }else{
    printf("%d\n",1+((int)floor(log10(a + b))));
  }
  return 0;
}