#include<iostream>
using namespace std;

int main(){
  int a, b, s, x=0;

  while(cin >> a >> b){
    s=a+b;
    while (s>0){
      x++;
      s/=10;
    }
    cout << x << endl;
		 x=0;
		 
  }

  return 0;
}