'use strict'
function Main(input){
  input=input.trim().split(/\s+/);
  var N=input.shift()-0;
  var K=input.shift()-0;
  console.log(N-K+1);
}

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