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

int main(){
	int a, b,n;
	while(cin >> a>>b){
		n=a+b;
		int ans = 1;
		while(n>=10){
			n/=10;
			ans++;
		}
		cout << ans << endl;
	}
	return 0;
}