"use strict";
function Main(input) {
 const args = input.split(' ').map(m => parseInt(m));
 const n = args.shift();
 const k = args.shift();
console.log(n - k + 1);

}

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