#include<iostream>
#include<string>
#include<sstream>
using namespace std;

int main(){
	int a,b,c;
	string ss;
	while(cin>>a>>b){
		c=a+b;
		ss=to_string(c);
		c=ss.length();
		cout<<c<<endl;
	}
	return 0;
}