//
//  main.cpp
//  Sample
//
//  Created by h3037183 on 2017/07/31.
//  Copyright ?? 2017??´ ?°????. All rights reserved.
//

#include <iostream>
#include<cstdio>
#include<algorithm>
using namespace std;
int main(){
    int a,b,e=1;
    while(cin>>a>>b){
        for(int z=10;z<1000000;z=z*10){
        if(a+b>=z){
            e++;
        }
    }
         cout<<e<<endl;
            e=1;
    }
    return 0;
}