#include "iostream"
using namespace std;

int main(void)
{
    int num1, num2;

    for (int i = 0; i < 200; i++) {
        cin >> num1 >> num2;

        num1 += num2;

        num2 = 0;
        while(num1 > 0) {
            num2++;
            num1 /= 10;
        } 

        cout << num2 << endl;
    }
    
    return 0;
}