#include <iostream>
#include <vector>

 int main() {
	 
	 int a;
	 int b;
	 int k;
	 int n;

	 while (std::cin >> a >> b) {

		 k = 1;

		 n = a + b;

		 while (n >= 10) {
			 
			 n /= 10;
			 k += 1;

		 }
		 std::cout << k << std::endl;
	 }

}