#include<bits/stdc++.h>
using namespace std;
int main(){
  int n,ans;
  int a,b;
  while(cin>>a>>b){
    int cnt=1,num=0;
    ans=a+b;
    while(1){
      num++;
      ans=ans/cnt;
      if(ans<10)
	break;
      ans=a+b;
      cnt*=10;
    }
    cout<<num<<endl;
  }
  return 0;
}