#include <iostream>

int main(int argc, const char * argv[]) {
    
    std::string a, b ;
    
    
    while ( std::cin >> a >> b )
        std::cout << (a+b).length() << "\n";
    
    return 0;
}

