#include <iostream>
#include <vector>
#include <fstream>
#include <algorithm>
#include <iomanip>
#include <map>
#include <queue>
#include <stack>
#include <set>
#include <ctime>
#include <iterator>
#include <sstream>
#include <cstdio>
#include <cstdlib>
#include <cmath>
using namespace std;


int main()
{
    int a,b;
    while(cin>>a>>b)
    {
        int sum = a+b;
        int res = 0;
        while(sum > 0)
        {
            res++;
            sum/=10;
        }
        cout<<max(1,res)<<endl;
    }
}