#include <iostream>
using namespace std;

int main(int argc, char *argv[]){
    int a,b;
	while(cin >> a >> b){
		int count=1;
		a=a+b;
		while((a/=10)!=0)count++;
		cout<< count <<endl;
	}
    return 0;
}