#include <iostream>
using namespace std;

int main() {
	
	while(1){
		int a,b,sum;
		int keta = 0;
		cin >> a;
		cin >> b;
		sum = a + b;
		
		while(sum /= 10 != 0){
			keta++;
		}
		cout << keta;
	}
	
	return 0;
}