#include <iostream>
using namespace std;

int f(int c){
	int d = 1;
	
	while(c >= 10){
		c = c/10;
		d++;
	}
	
	cout << d << endl;
	return 0;
}

int main() {
	int i;
	for(i=0; i < 3; i++){
		int a;
		int b;
		cin >> a;
		cin >> b;
		
		int c = a + b;
		f(c);
	}
	
	return 0;
}