#include <iostream>
#include <cstdio>
using namespace std;
int main(void){
	int a=0,b=0,c=0,d=1;
	while (scanf("%d %d",&a,&b)!=EOF){
		c=a+b;
		while (1){
			if (c/10>=1){
				d++;
				c/=10;
			}
			else break;
		}
		cout<<d<<endl;
		d=1;
	}
	return 0;
}