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