
function main(input) {
    let args = input.split(' ');
    let a = parseInt(args[0], 10);
    let b = parseInt(args[1], 10);
    console.log(a - b + 1);
}
main(require('fs').readFileSync('/dev/stdin', 'utf8'));