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

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

			c[i] = sprintf(str,"%d",a + b);
		}
		for(int i=0;i<3;++i)
			cout << c[i] << endl;
		return 0;
	}