#include <iostream>
//#include <cstring>
#include <cstdio>

using namespace std;


int main(){
	int a,b;
	while (cin >>  a >>  b){
		int l = a+b;
		char n[50];
		l=sprintf (n,"%d",a+b);
		cout << l << endl;
	
	}
	return 0;
	}
	}