#include<bits/stdc++.h>
using namespace std;
signed main(){
  int a,b,c,d;
  while(scanf("%d %d",&a,&b)!=EOF){
    d=0;
    c=a+b;
    while(true){
      if(c==0) break;
      d++;
      c=c/10;
    }
    printf("%d\n",d);
  }
}

