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