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