#include <iostream>
#include <cstdio>
#include <cmath>

using namespace std;

int main(){
  int sum, ans, n1, n2;
  scanf("%d%d", &n1, &n2);
  sum = n1+n2;
  ans = (int)log10((double)sum) + 1;
  cout<<ans<<endl;
  return 0;
}