#include<iostream>
#include<cstdio>

using namespace std;
int a,b;
int s;
int Count;
int main(){
  Count = 0;
  scanf("%d %d",&a,&b);
  s = a+b;
  for(; s !=0; s/=10){
    Count++;
  }
  cout << Count;
}