#include<iostream>
using namespace std;
int main(){
    int a =0, b=0, c=0, keta = 1, kijun = 10;
    while(cin >>a >>b){
        c= a+b;
        while(c >= kijun){
            kijun = kijun*10;
            ++keta;
        }
        cout<<keta<<endl;
        keta = 1;
        kijun = 10;
    }
}

