#include <bits/stdc++.h>
using namespace std;

int main() {
  int a, b, c, count = 0;
  while( cin >> a >> b){
  c = a + b;
    b = 1;
    for(int i = 1; i <= 7; i++){
      b *= 10;
      if(c < b){
        cout << i << endl;
        break;
      }
    }
  }
}
