#include<iostream>
using namespace std;

int main(){
	int a , b , c;
	int d = 1;
	while(cin >> a >> b){
		d = 1;
		c = a + b;
		while(1){
			if (c / 10 >= 1){
				c = c / 10;
				d++;
			}else{
				break;
			}
		}
		cout << d << endl;
	}
	return 0;
}