#include<iostream>
using namespace std;
int main(){
  int a,b;
  int ans = 0;
  int count = 0;
  while(cin>>a>>b){
  ans = a + b;
  while(ans!=0){
    ans = ans / 10;
    count++;
  }
  cout << count << endl;
  count = 0;  
}
}