#include<iostream>
#include<cstdio>
using namespace std;

int main() {

	int a, b, c,d;
	char e[100];

	while (cin >> a >> b) {

		c = a + b;

		d = sprintf_s(e, "%d", c);

		cout << d << endl;
	}
	return 0;
}