#include <iostream>

using namespace std;

int main(void){

  int a,b;

  while(1){

    cin >> a >> b;
    a += b;
    
    int cnt = 0;
    while(a){
      cnt++;
      a /= 10;
    }
    cout << cnt << endl;
  }
  return 0;
}