function Main(input){
    input = input.split(" ");
    nums = input.map(input=>parseInt(input,10));
    var ans = nums[0]-nums[1]+1
    console.log(ans);
}

Main(require("fs").readFileSync("/dev/stdin","utf8"));