#include <iostream>
using namespace std;
 
int main() {
    int a, b, c;
    int x;
    int flg;
 
    while (1) {
        cin>>a;
        if (cin.eof()) break;
        cin>>b;
 
        c=a+b;
 
        x = 1;
        flg = 1;
        while (flg) {
            if ((c=c/10)>0)
                x++;
            else
                flg = 0;
        }
        cout<<x<<endl;
    }
    return 0;
}