#include <iostream>

using namespace std;

int main()
{
    int a,b;
    while(cin>>a>>b){
        int c=a+b;
        int i=1;
        for(;c/=10;c>=1){
            i++;
        }
        cout<<i<<endl;
    }
}