#include <iostream>
#include <vector>
#include <algorithm>
#include <stack>
#include <string>
#include <map>
#include <functional>
#include <cmath>
#include <cstdio>
using namespace std;

int main(){
  int a, b;
  while(cin >> a >> b){
    int c = a + b, i;
    for(i = 0; c != 0; i++){
      c /= 10;
    }
    cout << i << endl;
  }
}