//
//  main.cpp
//  lianxi
//
//  Created by CYC on 9/25/15.
//  Copyright ? 2015 CYC. All rights reserved.
//

#include <iostream>
#include<math.h>
using namespace std;


int main() {
    int a = 0;
    int b = 0;
    
    cin >> a >> b;
    
    int c = 0;
    c = a + b;
    
//    cout << c << endl;
   
    for( int i = 1; i < 300; i++){
        if((int(pow(10,i)) >c) && (c >= int(pow(10,(i-1)) ))){
            cout <<  i  << endl;
            break;
        }
    }
    
//    cout << int( pow(10,10));
    
    
    
    return 0;
}