#include <cstdio>
using namespace std;
int a,b;
int cnt,ans;
int count(int s){
  if(s/10==0) return cnt;
  else {
    cnt++;
    count(s/10);
  }
}
int main(){
  while(scanf("%d %d",&a,&b)!=EOF){
    cnt=1;
    ans=count(a+b);
    printf("%d\n",ans);
  }
  return 0;
}