function main(input) {
	var a = parseInt(input[0]);
	var b = parseInt(input[1]);
  	var c = a + b + '';
  	var l = c.length + '';
  	process.stdout.write(l);
}

var input = '';


process.stdin.setEncoding('utf8');
process.stdin.on('data', function(data) {
  input = data.split('\r\n')[0].split(' ');
  process.stdin.pause();
  main(input);
});
process.stdin.resume();