#include <iostream>
#include <cstdio>
using namespace std;

int main() {
    int a, b;
    int cnt;
    while (cin >> a >> b) {
        cnt=0;
        a+=b;
        while (a>0) {
            a/=10;
            cnt++;
        }
        printf("%d\n",cnt);
    }
    return 0;
}