#include <iostream>
#include <sstream>
#include <iomanip>
#include <algorithm>
#include <cmath>
#include <string>
#include <vector>
#include <list>
#include <queue>
#include <stack>
#include <set>
#include <map>
#include <bitset>
#include <numeric>
#include <climits>
#include <cfloat>
using namespace std;

int main()
{
    for(;;){
        long long a, b;
        if(!(cin >> a >> b))
            return 0;
        a += b;
        int ret = 1;
        while((a /= 10) > 0)
            ++ ret;
        cout << ret << endl;
    }
}