#include <iostream>
using namespace std;
int a,b;

int digit(){
    int i = 0;
    int c = a + b;
    for(i = 0; c >= 1;i++){
        c = c/10;
    }
    return i;
}

int main() {
    while(cin>>a>>b){
        cout<< digit() <<endl;
    }
    return 0;
}