#include <iostream>

using namespace std;

int main(){

  int a,b;
  while(1){
    cin >> a;
    if(cin.eof()){
      break;
    }
    cin >> b;
    int sum = a + b;
    int cnt = 1;
    while(sum /= 10){
      cnt++;
    }
    cout << cnt << endl;
  }

  return 0;
}