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