const inputNumbers = require("fs")
  .readFileSync("/dev/stdin", "utf8")
  .split(/\s/);

const a = inputNumbers[0] * 1;
const b = inputNumbers[1] * 1;
const ret = Math.ceil((a + b) / inputNumbers.length);

console.log(ret);