#include<bits/stdc++.h>

using namespace std;

int main() {
  int a,b;
  while( cin >> a >> b ) {
    int c = a + b;
    stringstream ss;
    ss << c;
    cout << ss.str().size() << endl;
  }
  return 0;
}