#include<bits/stdc++.h>

using namespace std;

int main()
{
  int ans = 0;
  int a,b;
  cin>>a;
  cin>>b;

  int sum = a + b;

  while(1){
    sum = sum / 10;
    ans++;
    if(sum == 0){
      break;
    }
  }

  cout<<ans<<endl;

  return 0;
}
