#include <iostream>
#include <sstream>
#include <string>

using namespace std;

int main(){
  int a,b;
  stringstream c;
  cin >> a >> b;
  c << a+b;
  string str = c.str();
  cout << str.length() << endl;

  return 0;
}