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

int main(){
        int a, b;
        while(scanf("%d %d", &a, &b)){
                double temp = log10(a + b) + 1 ;
                cout << floor(temp) << endl;
        }
        return 0;
}