#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <cmath>
#include <ctime>
#include <cctype>
#include <climits>
#include <iostream>
#include <string>
#include <vector>
#include <map>
#include <list>
#include <queue>
#include <deque>
#include <algorithm>
#include <numeric>
#include <utility>
#include <complex>
#include <memory>
#include <functional>
using namespace std;
int main(){
	int a,b;
	while(cin>>a>>b){
		int ans=1;
		int cnt=a+b;
		while(cnt>=10){
			cnt/=10;
			ans++;
		}
		cout<<ans<<endl;
	}
	return 0;
}