fun main(args: Array<String>) {
  val input = readLine()!!
  val splited = input.split(" ")
  val a = Integer.parseInt(splited[0])
  val b = Integer.parseInt(splited[1])
  val result = a - b + 1
  println(result)
}