#include <iostream>

using namespace std;

int main() {
	int x, y;
	int total;
	int m = 0;

	while(cin >> x >> y){

		total = x + y;

		while(total != 0) {
			total /= 10;
			m++;
		}

		cout << m << endl;
		m = 0;

	}
}