#include <iostream>
#include <vector>
#include <algorithm>

using namespace std;
int main() {
    int a,b;
    while(cin >> a){

        cin >> b;
        cout << (int)log10(a+b)+1 << endl;
    }
    return 0;

}