/* All men have limits. They learn what they are and learn
   not to exceed them, I ignore mine. -Batman           */
#include <bits/stdc++.h>
//#include <iostream>
//#include <vector>
//#include <Windows.h>
using namespace std;

int main(){
long long int a,b,gg;
while(cin>>a>>b){
	gg=a+b;
	gg=log10(gg)+1;
	cout<<gg<<endl;
}

return 0;
}