#include <bits/stdc++.h>
using namespace std;

int main() {
	int a, b;
	while (cin >> a >> b) {
		int n = a + b;
		int c = 1;
		while (n) {
			int x = n / 10;
			n /= 10;
			if (x) {
				c++;
			}
		}

		cout << c << endl;
	}
}
