#include<iostream>
#include<vector>
#include<math.h>
using namespace std;

int main(){
  int a, b, out=0;

  cin >> a >> b;
  a += b;
  while(a != 0){
    a /= 10;
    out++;
  }

  cout << out << endl;

	return 0;
}