#include <iostream>
using namespace std;


int main(){
	for(int i = 0; i <3; ++i){

		int a;
		int b;
		int c;
		int f = 1;

		cin >> a >> b;

		c = a + b;

		while(1){
			c = c / 10;

			if(c <= 0){
				break;
			}
			++f;
		}

		cout << f << endl;
	}

	return 0;
}