import java.util.Scanner

object Main {
  def main(args: Array[String]) {
    val sc = new Scanner(System.in)
    var a = sc.nextInt()
    var b = sc.nextInt()
    var c = sc.nextInt()
    println(math.max(0, c - (a - b)))
  }
}
