#include <iostream>
#include <cmath>
#include <algorithm>
#include <string>
using namespace std;
int main() {
    int a,b;
    while(cin >>a>>b){
        int c=0,d=a+b;
        while(d){
            d=d/10;
            c++;
        }
        cout <<c << endl;
    }
    return 0;
}

