#include<string>
#include<vector>
#include<iostream>
#include<algorithm>
#include<cstdio>
#include<cstdlib>
#include<sstream>
#include<functional>
#include<map>
#include<set>
#include<cmath>

#define REP(i,s,e) for(int i=int(s);i<int(e);i++)
#define rep(i,n) for(int i=0;i<int(n);i++)

#define EPS 1e-9

using namespace std;

int main(){

unsigned int a,b;
while(true){
cin >> a >> b;
if(cin.fail()) break;

int c=1;
double s=a+b;
while(1){
s/=10;
if(s<1) break;
c++;
}

cout << c << endl;

}

return 0;
}