#include<iostream>
using namespace std;

int main(void){
  int a,b;
  cin >> a >> b;

  while(!cin.eof()){
    int m = a+b;
    int i;
    for(i=0;m!=0;i++){
      m /= 10;
    }
    cout << i << endl;
    cin >> a >> b;
  }
  return 0;
}