#include <cstdio>
#include <queue>
#include <vector>

using namespace std;


int main(){
	int a,b,c;
	char dm[256];
	while(scanf("%d %d",&a,&b) != EOF){
		c = sprintf(dm,"%d",a+b);
		printf("%d\n",c);
	}
	return 0;
}