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