program sample
	implicit none
    integer ::A,B,C,D
    
    read(*,*) A,B,C
    
    D =B+C
    
    if (D>A) then
    	write(*,*) D-A
    else
    	write(*,*) 0
	end if

    stop
end program sample
