function main(input) {
	var lines = input.split("\n").slice(0,200);
	for (var i = 0; i < lines.length; i++) {
		var digits = lines[i].split(" ").map(function(value) {return parseInt(value);});
		var digitString = (digits[0] + digits[1]) + ''; 
		console.log(digitString.length);
	}
}
main(require('fs').readFileSync('/dev/stdin','utf8'));