#include <iostream>
using namespace std;

int main()
{
  int a,b,ans;
  while(cin >> a >> b)
    {
      a += b;
      for(ans = 0;a >= 10;ans++)
	{
	  a = a / 10;
	}
      cout << ans << endl;
    }

  return 0;
}

  