#include<iostream>
#include<cstdio>
using namespace std;
int main(){
    int a,b;
    while((scanf("%d %d",&a,&b)) != EOF){
        a += b;
        int i = 0;
        while(a > 0){
            a /= 10;
            i++;
        }

        cout << i << endl;
    }
    return 0;
}