/*http://judge.u-aizu.ac.jp/onlinejudge/description.jsp?id=0002&lang=jp*/

#include <iostream>
#include <cmath>

using namespace std;

int main()
{
    int a,b;
    while(cin>>a>>b){
        cout<<(int)(log10(a+b)+1)<<endl;
    }
    return 0;
}