'use strict';

function main(input) {
    const args = input.split(' ');
    const i = parseInt(args[0], 10);
    const x = parseInt(args[1], 10);

    console.log(i - x + 1);
};

main(require('fs').readFileSync('/dev/stdin', 'utf8'));
