#include <iostream>
using namespace std;

int main() {
  int x, y, z, digit;

  while(cin >> x) {
    cin >> y;
    digit = 1;
    z = x + y;
    while(z >= 10) {
      digit++;
      z /= 10;}
    cout << digit << endl;
  }
}