#include <iostream>
using namespace std;

int main() {
   int a, b, c, t = 1;
   cin >> a >> b;
   c = a + b;
   while(1){
   	if(c / 10 == 0) break;
   	c /= 10;
   	t++;
   }
   cout << t << endl;
	return 0;
}