#include<iostream>
#include<algorithm>
using namespace std;

int main(){

  int a,b,count;

  while(cin >> a >> b){

    count=0;
    a+=b;

    while(a!=0){
      a=a/10;
      count++;
    }

    cout << count << endl;

  }
}