program prob12
    implicit none
    integer :: a,b,c

    read(*,*) a,b,c

    if(b + c >= a)then
        write(*,*) b+c-a
    else
        write(*,*) 0
    end if

    stop
contains
end program prob12