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



}