#include<iostream>
using namespace std;

int main(){

  int a, b;
  int temp;
  int i=0;
  int n;

  while( cin >> a >> b ) {
    n=0;
    temp = a+b;
    while(temp!=0){
      n++;
      temp = temp/10;
    }
    cout << n <<"\n";
    i++;

  }

  return 0;
}