#include<iostream>
#include<cstdio>
#include<cstring>
#include<cmath>
using namespace std;
int main()
{
int a , b , c , d ;
while(scanf("%d %d",&a,&b)!=EOF)
{
  c = a+b ;
  d = 0;
  while(c)
  {
    c /= 10;
    d++;
  }
  cout<<d<<endl;
}
return 0;
}