import java.util.Arrays
import java.util.ArrayList

const val MOD: Long = (1e9+7).toLong()
fun Double.format(digits: Int) = String.format("%.${digits}f", this)

fun main(args: Array<String>) {
    val (n, k) = readLine()!!.split(" ").map{it.toInt()}

    println(n-k+1)
}
