#include<iostream>
#include<stdio.h>
using namespace std;

int main(void){
  int a,b;

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