#include<iostream>
using namespace std;

int main(){

	int a,b,sum,ans;
	while(cin >> a >> b){
		
		sum = a + b;

		for (ans = 0;;++ans){
			sum = sum / 10;
			if(sum <= 0){
				++ans;
				break;
			}
		}
		cout << ans;
	}
	return 0;
}
	