#include<iostream>
using namespace std;

int main(){
int a;
int b;
int c;
int n;
int d;
while(cin >> a >> b){
c=a+b;
d=1;
n=0;
while(1){
if(d>c){break;}
d=d*10;
n=n+1;}
cout << n << endl;
}
    return 0;
}