#include <iostream>
using namespace std;

int main(){
	// input
	int a, b, total, ans;
	while(cin >> a >> b){
		total = a + b;
		while(true){
			total /= 10;
			ans++;
			if(total == 0){
				break;
			}
		}
		cout << ans << endl;
	}

	return 0;
}