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

int main(){
        int a, b;
        while(cin >> a >> b){
                double temp = log10(a + b) + 1 ;
                cout << floor(temp) << endl;
        }
        return 0;
}