'use strict';
function main(stdin) {
  const input = stdin.split(' ').map(v => { return parseInt(v, 10) });
  console.log(input[0] - input[1] + 1);
}
main(require('fs').readFileSync('/dev/stdin', 'utf8'));
