#include <iostream>

int main()
{
  using namespace std;

  unsigned int a(0), b(0), cnt(0);

  do {
    cin >> a, cin >> b;
    a += b;
    for(cnt=1; a/=10; ++cnt);
    cout << cnt << endl;
  } while(!cin.eof());

  return 0;
}