'use strict'

function Main(input) {
  const N = Number(input.split(" ")[0])
  const K = Number(input.split(" ")[1])

  console.log(N - K + 1)
}

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