#include <stdio.h>

int main(){
  int a, b, sum;
  int count;

  while(scanf("%d %d", &a, &b)!=EOF){
    sum=a+b;
    count=1;
    while(sum/10!=0) count++;
    printf("%d\n", count);
  }
  return 0;
}