#include<iostream>
using namespace std;

int main() {
  int a, b, n, m;
  while(cin>>a>>b){
    m=0;
    n=a+b;

    while(n!=0){
      n/=10;
      m++;
    }

    cout << m << endl;
  }
  return 0;
}


