#include "iostream"
#include "string"
#include "cmath"
using namespace std;

int main(int argc, char const *argv[])
{
  int a, b, total;
  cin >> a >> b;
  total = a+b;
  total = floor(log10(abs(total))) + 1;
  if (total < 0)cout << 0;
  else cout << total;
  return 0;
}