#include<iostream>
using namespace std;

int main(void){
  long a,b;
  
  cin >> a >> b;
  long s = a + b;
  int ans = 1;
  while(s > 0){
    s/=10;
    if(s > 0){
      ans++;
    }
  }

  cout << ans << endl;
  return 0;
}

