#include <iostream>
using namespace std;

int main()
{
  int a, b;
  int cou;
  int i, j;
  int ten;

  for (i = 0; i < 200; i++){
    cou = 0;
    ten = 1;
    cin >> a >> b;
    a += b;
    for (j = 1; j <= 7; j++){
      if (a / ten > 0){
        cou++;
        ten  *= 10;
      }
    }
    cout << cou << "\n";
  }

  return (0);
}