function main(input) {
	input.split("\n").forEach(function(line) {
		console.log((line.split(" ").reduce(function(sum, value){
    		return sum + parseInt(value);
		}, 0) + '').length);
	});
}
main(require('fs').readFileSync('/dev/stdin','utf8'));