fun main(args: Array<String>) {
  val line = readLine()
  if (line != null) {
    val A = Integer.parseInt(line.split(" ")[0])
    val B = Integer.parseInt(line.split(" ")[1])
    val C = Integer.parseInt(line.split(" ")[2])
    val result = C - (A - B)
    if (result >= 0) {
      println(result)
    } else {
      println(0)
    }
  }
}