//#include <iostream>
//using namespace std;
#include <stdio.h>
int main(){
  int a, b;

  while(scanf("%d %d", &a, &b ) != EOF){
    int c = a + b;
    int n = 1;
    while(1){
      if(c / 10 == 0) break;
      n++;
    }
    printf("%d\n", n);
    // cout << n << endl;
  }

  return 0;
}