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


read(*,*) a,b,c

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

if (c-(a-b)<0 .or. c-(a-b)==0) then
    write(*,*) 0
end if


stop

end program kadai