#include<iostream>
using namespace std;

int main(){
  int a, b;
  while(cin >> a >> b){
    int ab = a + b;
    int digit = 0;
    while(1){
      ab = ab/10; 
      digit++;
      if(ab==0)break;
    }
    cout << digit << endl;
  }
  return 0;
}

