#include <iostream>

using namespace std;

int main(){
  long long a, b;
  while(cin >> a >> b){
    int t = a+b;
    long long res = 0;
    while(t){ res++; t /= 10; }
    cout << max(1, t) << endl;
  }
}