#include<iostream>
#include<algorithm>

using namespace std;

int main(void){
  int a,b;
  int sum;
  int digit = 1;
  cin >> a >> b;
  sum = a + b;
  while(sum > 0){
    if(sum /= 10){
      digit++;
    }
  }
  cout << digit << endl;
  return 0;
}