#include <iostream>
#include <cstdio>
using namespace std;

int main(){
  int count=0,digit,a,b;

  while(scanf("%d%d",&a,&b)!=EOF){
    digit = a+b;
    while(digit!=0){
      digit/=10;
      count++;
}
    cout << count << endl; 
    count =0; 
}
  return 0;
}
 