function getlength(num1,num2) {
    var num=num1+num2;
    var n1=num.toString().length;
    return n1;
}
var input = require('fs').readFileSync('/dev/stdin', 'utf8');
console.log(getlength(Number(input[0]),Number(input[1])));