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

int main(){

  int a,b;

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

  return 0;
}