#include <iostream>

using namespace std;
int main(){
  int a,b;
  while( cin >> a >> b ){
    int s = a+b,cnt = 0;
    while(s/10){
      s/=10;
      cnt++;
    }
    cout << cnt << endl; 
  }
  return 0;
}