#include<iostream>
using namespace std;

int main() {
	long long int a, b;
	int p=1;
	long long int c=10;
	
	while(cin>>a>>b) {
		p=1;
		c=10;
		while(c<=a+b) {
			p++;
			c*=10;
		}

		cout<<p<<endl;
	}
}