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