"use strict"
function main(arg) {
    arg = arg.trim().split("\n")[0].split(" ")
    var n = arg[0]
    var k = arg[1]
    console.log(n - (k - 1))
}
main(require('fs').readFileSync('/dev/stdin', 'utf8'));