#include <iostream>
using namespace std;

int main() {
  int a, b;
  while(cin >> a >> b) {
    int sum = a + b;
    int count = 1;
    while(sum >= 10) {
      count++;
      sum /= 10;
    }
    cout << count << endl;
  }
  return 0;
}