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

int getDigit(int num){
    int digit = 0;
    while(num != 0){
        num /= 10;
        digit++;
    }
    return digit;
}

int main(){
    int a, b = 0;
    while(cin >> a >> b){
        cout << getDigit(a + b) << endl;
    }
    return 0;
}