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

int main()
{
	
	int a,b,c;
	char str[16];
	for(int i=0;i<3;++i){
		cin >> a >>b;

		c = sprintf(str,"%d",a + b);

		cout << c << endl;
	}
	return 0;
}