function main(input){
    var lines = input.split(" ").map(n => parseInt(n, 10));
	var result = (lines[0]+lines[1] + lines.length - 1)/lines.length;
    console.log(result);
}
main(require('fs').readFileSync('/dev/stdin', 'UTF-8'));