#include <iostream>
using namespace std;
int main(){
int A,B,C,i=10,test=1,k=0;
while(k=0){
cin >> A >> B;
C = A + B;
if(C<10){
cout << 1 << endl;
}
else{
while(test!=0){
i = i * 10;
test++;
if(C<i){
cout << test << endl;
test = 0;
}
}
}
}
}
