let transfer a b c =
  let remain = c - (a - b) in
    if remain > 0 then remain else 0

let a, b, c = Scanf.sscanf (read_line ()) "%d %d %d " (fun a b c -> (a, b, c))
let () = Printf.printf "%d\n" (transfer a b c)