
#include <iostream>
#include <math.h>
using namespace std;

int main() {
    int a,b;
    while(cin >> a >> b){
        int ans = 0;
        ans = (int)log10(a+b)+1;
    cout << ans << "\n";
    }
    
return 0;
}