Problem:
 Score : 100 points    Problem Statement We have two bottles for holding water.  Bottle 1 can hold up to A milliliters of water, and now it contains B milliliters of water.  Bottle 2 contains C milliliters of water.  We will transfer water from Bottle 2 to Bottle 1 as much as possible.  How much amount of water will remain in Bottle 2 ?      Constraints  All values in input are integers.  1 \leq B \leq A \leq 20  1 \leq C \leq 20         Input Input is given from Standard Input in the following format:  A  B  C       Output Print the integer representing the amount of water, in milliliters, that will remain in Bottle 2 .        Sample Input 1 6 4 3      Sample Output 1 1  We will transfer two milliliters of water from Bottle 2 to Bottle 1 , and one milliliter of water will remain in Bottle 2 .       Sample Input 2 8 3 9      Sample Output 2 4       Sample Input 3 12 3 7      Sample Output 3 0

Solution (Python):
A,B,C=map(int,input().split())

if C-A+B>0:
    print(C-A+B)
else:
    print(0)

Solution (Python):
a,b,c=map(int,input().split())
d=b+c
if(d-a>0):
  print(d-a)
else:
  print("0")

Solution (Python):
A,B,C = map(int, input().split())
culc = C - A + B
print(culc if culc >= 0 else 0)

Solution (Python):
wc = input().split(" ")

A = int(wc[0])
B = int(wc[1])
C = int(wc[2])

if C-(A-B) < 0:
  print(0)
else:
  print(C-(A-B))

Solution (Python):
A,B,C=map(int,input().split())
if (A-B)<C:
  print(C-(A-B))
else:
  print(0)

Solution (Python):
A, B, C = list(map(int, input().split()))
if C - (A - B) > 0:
    print(C - (A - B))
else:
    print(0)

Solution (Python):
a, b, c = map(int, input().split())

print(max(0, c-a+b))

Solution (Python):
a,b,c = map(int, input().split())

print(max(0, c - (a-b)))

Solution (Python):
a, b, c = map(int, input().split())
if b + c <= a:
    print(0)
else:
    print(c - (a - b))

Solution (Python):
A,B,C=input().split()

if int(C)>int(A)-int(B):
    print(int(C)-(int(A)-int(B)))
else:
    print(0)

Solution (Python):
a, b, c = map(int, input().split())

hairu = a - b
nokori = c - hairu

if nokori <= 0:
    print(0)
else:
    print(nokori)

Solution (Python):
A, B, C = map(int, input().split())
ans = C-(A-B)
if ans <= 0:
    ans = 0
print(ans)

Solution (Python):
A,B,C=map(int,input().split())
if (A-B)>=C:
    print(0)
else:
    ans=C-A+B
    print(ans)

Solution (Python):
a,b,c=list(map(int,input().split()))
cap=a-b
use=min(a-b,c)
ans=c-use
print(ans)

Solution (Python):
lis = list(map(int, input().split()))

if lis[2] - (lis[0] - lis[1]) > 0:
    print(lis[2] - (lis[0] - lis[1]))
else:
    print(0)

Solution (Python):
A, B, C = map(int, input().split(" "))

if B + C <= A:
    print(0)
else:
    print(C - (A - B))

Solution (Python):
print(max(0,eval('-'+input().replace(' ','+'))))

Solution (Python):
A,B,C=map(int,input().split())
if A >= (B+C):
    print(0)
else:
    print(B+C-A)

Solution (Python):
A, B, C = map(int, input().split())
print(B+C-A if B+C-A > 0 else 0)

Solution (Python):
a, b, c = map(int, input().split())
if b+c > a:
    print(c-a+b)
else:
    print(0)

Solution (Python):
a, b, c = (int(x) for x in input().split())
print(max(c - (a - b), 0))

Solution (Python):
a, b, c = map(int, input().split())

print(0 if c < a-b else c-(a -b))

Solution (Python):
a,b,c = map(int, input().split())
ans = c-(a-b)
if ans<0:
  print(0)
else:
  print(ans)

Solution (Python):
a,b,c =map(int,input().split())
if a-b>=c:
    print(0)
else:
    print(c-a+b)

Solution (Python):
A, B, C = map(int, input().split())
print(B + C - A if A < B + C else 0)

Solution (Python):
ABC = list(map(int, input().split()))
empty = ABC[0] - ABC[1]
margin = ABC[2] - empty
if margin < 0:
    print(0)
else:
    print(margin)

Solution (Python):
a,b,c = map(int,input().split())


if c-(a-b) >= 0:
    print(c-(a-b))
else:
    print("0")

Solution (Python):
a, b, c = map(int, input().split())

print(c-(a-b) if c-(a-b) > 0 else 0)

Solution (Python):
a,b,c = map(int,input().split(" "))
d = c - (a - b)
if d < 0:
  d = 0
print(d)

Solution (Python):
A, B, C = map(int, input().split())

s = C-(A-B)
print(s if C-(A-B) > 0 else 0)

Solution (Python):
def main():
    a, b, c = map(int, open(0).read().split())

    ans = max(0, c - (a - b))
    print(ans)
    return()

if __name__ == '__main__':
    main()

Solution (Python):
A,B,C = map(int, input().split())
print(C-(A-B) if C-(A-B) >=0 else 0)

Solution (Python):
import sys
def input():
    return sys.stdin.readline()[:-1]

A, B, C = map(int, input().split())

ans = B+C-A

if ans < 0:
    print(0)
else:
    print(ans)

Solution (Python):
a, b, c = map(int, input().split())
print(max(0, c-(a-b)))

Solution (Python):
a, b, c = map(int, input().split())

if a-b < c:
  print(c-(a-b))

if a-b >= c:
  print(0)

Solution (Python):
A,B,C = map(int,input().split())

if(B+C>=A):
  print(C-(A-B))
else: 
  print(0)

Solution (Python):
a, b, c = map(int, input().split())
if (a - b) <= c:
  print(c - (a - b))
else:
  print(0)

Solution (Python):
s=list(map(int,input().split()))
s[0]=int(s[0])
s[1]=int(s[1])
s[2]=int(s[2])
a=0
if s[0]-s[1]>s[2]:
  print(0)
else:
  print(s[2]-s[0]+s[1])

Solution (Python):
def solve():
    A, B, C = list(map(int, input().split()))
    if A  < B + C: 
        C = C - (A - B)
    else:
        C = 0

    print(str(C))

solve()

Solution (Python):

A,B,C=list(map(int,input().split()))


C=C-(A-B)
if(C<0):
    print(0)
else:
    print(C)

Solution (Python):
def p_a():
    a, b, c = map(int, input().split())
    print(max(0, b + c - a))
    
p_a()

Solution (Python):
a, b, c = map(int, input().split())
d = c - (a - b)
if d < 0 :
    print('0')
else:
    print(d)

Solution (Python):
a,b,c=map(int,input().split())
c -= a-b
print(0 if c<0 else c)

Solution (Python):

import sys


def solve(A: int, B: int, C: int):
    able = A - B
    result = C - able
    if result >= 0:
        print(result)
    else:
        print(0)
    return


def main():
    def iterate_tokens():
        for line in sys.stdin:
            for word in line.split():
                yield word

    tokens = iterate_tokens()
    A = int(next(tokens))  
    B = int(next(tokens))  
    C = int(next(tokens))  
    solve(A, B, C)


if __name__ == "__main__":
    main()

Solution (Python):
a,b,c = list(map(int,input().split()))

if c-(a-b) < 0:
    print(0)
else:
    print(c-(a-b))

Solution (Python):
A,B,C = list(map(int,input().split()))
aki = A - B
if aki >= C:
  print(0)
else:
  print(C-aki)

Solution (Python):
A, B, C = list(map(int, input().split()))
print(max(0, C-(A-B)))

Solution (Python):
n=[int(i) for i in input().split()]
ans=n[2]-(n[0]-n[1])
if(ans<0):
  ans=0
print(ans)

Solution (Python):

 
A,B,C = map(int,input().split())
 
if C>(A-B):
    print(C-(A-B))
else:
    print(0)

Solution (Python):
A, B, C = map(int, input().split())
print(C-(A-B) if C-(A-B) > 0 else 0)

Solution (Python):
def main():
    a, b, c = [int(i) for i in input().split()]
    ans = c - (a - b)
    if ans < 0:
        print(0)
    else:
        print(ans)


if __name__ == "__main__":
    main()

Solution (Python):
a,b,c = [int(x) for x in input().split()]
d = c - (a - b)
print(d if d >= 0 else 0)

Solution (Python):
print(max(0,eval("-"+input().replace(" ",'+'))))

Solution (Python):
a,b,c=list(map(int, input().split()))
if b+c-a>=0:
	print(b+c-a)
else:
	print(0)

Solution (Python):
A, B, C = list(map(int, input().split()))
answer = C - (A - B)
if answer <= 0:
    answer = 0
print(answer)

Solution (Python):
a, b, c = map(int, input().split())
capacity = a - b
if c > capacity:
    answer = c - capacity
else:
    answer = 0
    
print(answer)

Solution (Python):
A, B, C = list(map(int,input().split()))
print(max((B+C-A),0))

Solution (Python):
cap, current, rem = input().split()
cap, current, rem = int(cap), int(current), int(rem)
 
while current < cap and rem > 0:
  current += 1
  rem -= 1
print(rem)

Solution (Python):
a,b,c = map(int,input().split())
if(a-b>=c):
    ans=0
else:
    ans=c-(a-b)
print(ans)

Solution (Python):
import sys
input = sys.stdin.readline

def main():
    A, B, C = map(int, input().split())
    if B+C<=A:
        print(0)
    else:
        print(B+C-A)

if __name__ == '__main__':
    main()

Solution (Python):
A,B,C=map(int,input().split())
num=C-(A-B)
if num<=0:
  print(0)
else:
  print(num)

Solution (Python):
A,B,C = map(int,input().split())
if C-(A-B) > 0:
    print(C-(A-B))
else:
    print(0)

Solution (Python):
a, b, c = input().split()
a = int(a)
b = int(b)
c = int(c)
if a>=b+c:
    print(0)
     
else:
    print(b+c-a)

Solution (Python):
A, B, C=map(int, input().split())

if A-B<C:
  print(C-A+B)
else:
  print(0)

Solution (Python):
a, b, c = [int(i) for i in input().split()]

ans = c - a + b
if ans >= 0:
    print(c-a+b)
else:
    print(0)

Solution (Python):
a,b,c = map(int, input().split())

ans = c - (a - b)

if ans > 0:
  print(c - (a - b))
  
else:
  print(0)

Solution (Python):
a, b, c = map(int, input().split())

print(max(0, c - (a - b)))

Solution (Python):
a, b, c = map(int, input().split())
print(max(0, c - (a - b)))

Solution (Python):
ABC=input()
ABC=ABC.split(" ")
A=int(ABC[0])
B=int(ABC[1])
C=int(ABC[2])

if (C-(A-B) > 0):
  print(C-(A-B))
else:
  print(0)

Solution (Python):
A,B,C = list(map(int, input().split()))






if C-(A-B)>0:
    print(C-(A-B))
else:
    print("0")

Solution (Python):
A, B, C = map(int, input().split())
ans = C-(A-B)
if ans<0:
  ans=0
print(ans)

Solution (Python):
a, b, c = map(int, input().split())
v = c-a+b
if v < 0:
    v = 0
print(v)

Solution (Python):
a,b,c =map(int,input().split())
c = c - (a-b)
if (c < 0):
    c = 0

print(c)

Solution (Python):
a,b,c=map(int,input().split())
print(max(c-a+b,0))

Solution (Python):

a,b,c = map(int,input().split())
print(c-(a-b) if c-(a-b) >= 0 else 0)

Solution (Python):
a,b,c = map(int, input().split())
ans = c-a+b
if ans <0:
    print(0)
else:
    print(ans)

Solution (Python):
a, b, c= map(int, input().split())
if c>(a-b):
   print(c-(a-b))
else:
   print(0)

Solution (Python):
a,b,c=map(int,input().split())
if b+c>a:
  print(c-a+b)
else:
  print(0)

Solution (Python):
a,b,c=map(int,input().split())
d=c-(a-b)
if d>0:
  print(d)
else:
  print(0)

Solution (Python):
a,b,c=map(int,input().split())
if (a-b)>=c:
  print(0)
else:
  print(c-a+b)

Solution (Python):
A,B,C = map(int, input().split())
if B >= 1 and A >= B and A <= 20 and C >= 1 and C <= 20:
    capacity = A - B
    if capacity <= C:
        remaining = C - capacity
    else:
        remaining = 0
    print(remaining)

Solution (Python):
MI = lambda : map(int,input().split())
a,b,c = MI()
print(c-min(a-b,c))

Solution (Python):
a,b,c = map(int,input().split())
print(max(0,c-a+b))

Solution (Python):
a,b,c=map(int,input().split())
x=a-b
if c<x:
  print(0)
else:
  print(c-x)

Solution (Python):
a, b, c = map(int, input().split())
rest = a - b
ans = c - rest
if ans < 0:
  ans = 0
print(ans)

Solution (Python):
array = list(map(int, input().split()))

A = array[0]
B = array[1]
C = array[2]

ans = C - (A - B)
if ans < 0:
    ans = 0

print(ans)

Solution (Python):
ABC = list(map(int, input().split()))

A = ABC[0]
B = ABC[1]
C = ABC[2]

if A - B < C:
    print( C - (A-B) )
else:
    print(0)

Solution (Python):
A, B, C = map(int, input().split())

ans = (C-(A-B))
if ans>= 0:
    print(ans)
else:
    print(0)

Solution (Python):
a,b,c = map(int,input().split())
ans=c-(a-b)
if ans >= 0:
  print(ans)
else:
  print(0)

Solution (Python):
a, b, c = map(int, input().split())
print(max(0, c - a + b))

Solution (Python):
while True:
    ABC=list(map(int,input().split(" ")))
    
    if len(ABC)==3 and ABC[0]<=20 and ABC[1]<=ABC[0]:
        break

a=ABC[0]
b=ABC[1]
c=ABC[2]

empty1=a-b
if c-empty1>0:
    empty2=c-empty1
elif c-empty1<=0:
    empty2=0

print(empty2)

Solution (Python):
a,b,c = map(int,input().split())

x = a - b
z = c - x
if z <= 0 :
    z = 0
print(str(z))

Solution (Python):
a,b,c=map(int,input().split())
d=c-(a-b)
print([d,'0'][d<=0])

Solution (Python):
a,b,c=map(int,input().split())
d=c-(a-b)
if(d<=0):
    print('0')
else:
    print(d)

Solution (Python):
a,b,c = map(int,input().split())
if a - b > c:
    print(0)
else:
    print(c-a+b)

Solution (Python):
A, B, C = list(map(int, input().split()))

if C > (A-B):
    print(C-(A-B))
elif C <= (A-B):
    print(0)

Solution (Python):
A, B, C = map(int, input().split())

if A - B < C:
    print(C - (A - B))
else:
    print(0)

Solution (Python):
a,b,c=map(int,input().split())
d=c-(a-b)
if d>=0:
    print(d)
else:
    print(0)

Solution (Python):
a, b, c = map(int, input().split())
capacity = a - b
rest = c - capacity
if rest < 0:
    rest = 0
print(rest)

Solution (Python):
a,b,c = [int(i) for i in input().split()]
print(max(b+c-a, 0))

Solution (Python):
a,b,c = map(int,input().split())
print(c-(a-b) if c-(a-b)>0 else 0)

Solution (Python):
a,b,c = map(int,input().split())
ans = 0

if a <= b:
    ans = c
else:
	ans = c-(a-b)
	if ans < 0:
		ans = 0
    
print(ans)

Solution (Python):
a,b,c = map(int,input().split())

if (a-b) >= c:
  print(0)
else:
  print(c-a+b)

Solution (Python):
a,b,c=map(int,input().split())
d=a-b
e=c-d
if e<0:
    e=0
print(e)

Solution (Python):
a,b,c=map(int, input().split())
if (a-b) > c:
  print(0)
else:
  print(c-(a-b))

Solution (Python):
a, b, c = map(int, input().split())
print(c+b-a if c+b-a > 0 else 0)

Solution (Python):
from sys import exit, stdin
A, B, C = [int(_) for _ in stdin.readline().rstrip().split()]
if C-A+B > 0:
    print(C-A+B)
else:
    print(0)

Solution (Python):
a,b,c =  (int(i) for i in input().split())

d = c-a+b

if d >=0:
	print(d)

else:
	print("0")

Solution (Python):
a,b,c = map(int, input().split())

S = c - a + b
if S > 0 :
            print (S)
else :
            print ("0")

Solution (Python):
a,b,c = map(int, input().split())
print(max(c-(a-b), 0))

Solution (Python):
A,B,C=map(int,input().split())
if C-(A-B)>0:
  print(C-(A-B))
else:
  print(0)

Solution (Python):
a, b, c = list(map(int, input().split(' ')))
print(c - (a - b) if a - b < c else 0)

Solution (Python):
a, b, c = map(int, input().split())
print(c - a + b if c - a + b >= 0 else 0)

Solution (Python):
a, b, c = map(int, input().split())
print(max(0, c - (a - b)))

Solution (Python):
ABC = list(map(int,input().split()))
A = ABC[0]
B = ABC[1]
C = ABC[2]
if (A>(B+C)):
    print(0)
else:
    D = A-B
    a = C - D
    print(a)

Solution (Python):
a, b, c = map(int ,input().split())
print(max(0, c - (a - b)))

Solution (Python):
A, B, C = map(int, input().split())
ans = C - (A - B)
if ans < 0: ans = 0
print(ans)

Solution (Python):
num=list(map(int,input().split()))

sum=num[0]-num[1]

ans=num[2]-sum

if ans <=0:
  ans=0

print(ans)

Solution (Python):
n,m,l = input().split()
n = int(n)
m = int(m)
l = int(l)

x = l - n + m
print(x if x>=0 else 0)

Solution (Python):
a,b,c = map(int,input().split(" "))

s = c-(a-b)
if s > 0:
    print(s)
else:
    print(0)

Solution (Python):
A,B,C=map(int,input().split())
print(max(0,B+C-A))

Solution (Python):
a,b,c = map(int,input().split())

x =(a-b)-c
if x >0:
  print("0")
else:
  print(x*-1)

Solution (Python):
a,b,c=map(int,input().split())
if c-(a-b) > 0:
    print(c-(a-b))
else:
    print(0)

Solution (Python):
A, B, C = map(int, input().split())
print(max([0, C - A + B]))

Solution (Python):
a, b, c = list(map(int, input().split()))
t = min(a-b, c)
print(c-t)

Solution (Python):
A, B, C =map(int,input().split())
print(max([0,C-A+B]))

Solution (Python):
a, b, c = map(int, input().split())
if a - b < c :
    print(c-(a-b))
else:
    print(0)

Solution (Python):
A,B,C=map(int,input().split())

print(max(C-(A-B), 0))

Solution (Python):
from sys import stdin

param = input().split()
A=int(param[0])
B=int(param[1])
C=int(param[2])

hituyou=A-B
if hituyou<=C :
  nokori = C-hituyou
elif hituyou>C:
  nokori = 0
  
print(nokori)

Solution (Python):
a,b,c=map(int,input().split(" "))

print(max(c-(a-b),0))

Solution (Python):
a,b,c=map(int, input().split())
rest = c - (a - b)
if rest > 0:
  print(rest)
else:
  print(0)

Solution (Python):
A,B,C = list(map(int,input().split()))
ans = C-(A-B)

if ans >= 0:
    print(ans)
else:
    print(0)

Solution (Python):
A, B, C = map(int, input().split())

if A-B-C >= 0:
	print(0)
else:
	print(-(A-B-C))

Solution (Python):
a,b,c = map(int ,input().split())
i=a-b
if i>=c:
    print("0")
else:
    print(c-i)

Solution (Python):
A, B, C = map(int, input().split())
D = A - B
if D < C:
	print(C - D)
else:
	print(0)

Solution (Python):
A, B, C = map(int, raw_input().split())
print max(B + C - A,0)

Solution (Python):
A,B,C=map(int,input().split())
ans=C-A+B
if ans<0:
    ans=0
print(ans)

Solution (Python):
a, b, c = list(map(int, input().split()))
rem = c - (a - b)
if rem >= 0:
    print(rem)
else:
    print(0)

Solution (Python):
A, B, C = list(map(int,input().split(' ')))
m2 = (C-(A-B))
if 0 < m2:
  print(m2)
else:
  print(0)

Solution (Python):

A,B,C = map(int,input().split())

D = C-(A-B)

if D > 0:
    print(D)
else:
    print(0)

Solution (Python):
a,b,c=map(int,input().split())
print(max(c-a+b,0))

Solution (Python):
A,B,C = map(int,input().split())
answer=B+C-A

if answer>=0:
  print(answer)
else :
  print(0)

Solution (Python):
a,b,c=map(int,input().split())
print(max(c-(a-b),0))

Solution (Python):
a, b, c = map(int, input().split(" "))
if a - b <= c:
    print(c - (a - b))
else:
    print(0)

Solution (Python):
a,b,c = map(int, input().split())
print(max(c-(a-b),0))

Solution (Python):
def main(): 
    a,b,c = map(int, input().split())

    if(c <= (a-b)):
        print(0)
    else:
        print(c - (a-b))


if __name__ == "__main__":
    main()

Solution (Python):
a, b, c = map(int, input().split())
w = c - (a - b)
print(w if w >= 0 else 0)

Solution (Python):
a,b,c=map(int,input().split())
d=c-a+b
if d>0:
  print(d)
else:
  print(0)

Solution (Python):
a,b,c = map(int,input().split())

limit = a - b
ans = c - limit

if ans < 0:
	ans = 0

print(ans)

Solution (Python):
a,b,c=map(int,input().split())
print(max(0,b+c-a))

Solution (Python):
a, b, c = (int(x) for x in input().split(' '))

d = c - (a - b)

if d > 0:
    print(d)
else:
    print(0)

Solution (Python):
a,b,c = map(int,input().split())
print(max(0,c-a+b))

Solution (Python):
A, B, C = map(int,input().split())
print(max(0,C-(A-B)))

Solution (Python):
A,B,C = map(int, input().split())

if A-B < C:
    print(C-(A-B))
else:
    print(0)

Solution (Python):
def main():
    a, b, c = map(int, input().split())

    bottle1 = max(a - b, 0)
    ans = max(c - bottle1, 0)
    print(ans)

if __name__ == '__main__':
    main()

Solution (Python):
A, B, C = map(int, input().split())
print(max(C - (A - B), 0))

Solution (Python):
x,y,z = map(int,input().split())
print(z-(x-y)) if y+z >= x else print(0)

Solution (Python):
a,b,c=map(int,input().split())
if a-b>=c:
  print(0)
else:
  print(c-(a-b))

Solution (Python):
a, b, c = map(int, input().split())

ans = c-a+b
if ans > 0:
    print(c-a+b)
else:
    print(0)

Solution (Python):
A,B,C = (int(x) for x in input().split())

print(B+C-min(A, B+C))

Solution (Python):
A,B,C=map(int,input().split())
X=(B+C)-A
if X < 0 :
  print(0)
else :
  print(X)

Solution (Python):
a,b,c=map(int,input().split());print(max(0,c-a+b))

Solution (Python):
a, b, c  = map(int, input().split())
if b + c <= a:
  print(0)
else:
  print(b + c - a)

Solution (Python):
import sys
s2nn = lambda s: [int(c) for c in s.split(' ')]
ss2nn = lambda ss: [int(s) for s in ss]
ss2nnn = lambda ss: [s2nn(s) for s in ss]
i2s = lambda: sys.stdin.readline().rstrip()
i2n = lambda: int(i2s())
i2nn = lambda: s2nn(i2s())
ii2ss = lambda n: [sys.stdin.readline().rstrip() for _ in range(n)]
ii2sss = lambda n: [list(sys.stdin.readline().rstrip()) for _ in range(n)]
ii2nn = lambda n: ss2nn(ii2ss(n))
ii2nnn = lambda n: ss2nnn(ii2ss(n))
from collections import deque  
from collections import defaultdict  
from heapq import heapify, heappush, heappop, heappushpop  
from bisect import bisect_left, bisect_right  
sys.setrecursionlimit(int(1e+6))
MOD = int(1e+9) + 7



def main():
    A, B, C = i2nn()
    n = max(C - (A - B), 0)
    print(n)

main()

Solution (Python):
a, b, c = map(int, input().split())

x = min(a-b, c)
ans = c - x
print(ans)

Solution (Python):
a, b, c = map(int, input().split())

ans = a-b-c
if ans <= 0:
  print(abs(ans))
else:
  print(0)

Solution (Python):
A, B, C = map(int, input().split())
 
if C+B < A:
	print(0)
else:
	print(C+B-A)

Solution (Python):
A,B,C = map(int, input().split())
if C >= A-B:
    print(C-(A-B))
else:
    print(0)

Solution (Python):


a,b,c = map(int,input().split())
c = 0 if c-(a-b) < 0 else c-(a-b)
print(c)

Solution (Python):
A, B, C = map(int, input().split())

if C-(A-B) > 0:
    print(C-(A-B))
else:
    print(0)

Solution (Python):
asize,bwater,cwater = map(int,input().split())

if bwater + cwater >= asize:
    cnokori = cwater - (asize - bwater)
    print(cnokori)

else:
    print(0)

Solution (Python):
A, B, C = map(int, input().split())
if C-A+B>=0:
  print(C-A+B)
else:
  print("0")

Solution (Python):
while True:
    try:
        A, B, C = map(int, input().split())
        print(max(0, C-(A-B)))
    except:
        break

Solution (Python):
l=list(map(int,input().split()))
a=l[0]
b=l[1]
c=l[2]
if a>=b+c:
  print(0)
else:
  print(c-a+b)

Solution (Python):
A, B, C = map(int,input().split())
if C-A+B>=0:
    print(C-A+B)
else:
    print(0)

Solution (Python):
from sys import stdin
 
a, b, c = [int(x) for x in stdin.readline().rstrip().split()]
print(c - min(c, (a - b)))

Solution (Python):
if __name__ == '__main__':
    A,B,C = map(int, input().split())
    a = C - (A - B)
    if a >= 0:
        print(a)
    else:
        print(0)

Solution (Python):
a, b, c = map(int, input().split())
remain = a - b
print(c - remain if c >= remain else 0)

Solution (Python):
a, b, c = map(int, input().split())
remain = a - b
print(c - remain if c >= remain else 0)

Solution (Python):
nums = input().split(" ")
a_b = int(nums[0]) - int(nums[1])
c = int(nums[2])
if a_b >= c:
  n = 0
else:
  n = c - a_b
print(n)

Solution (Python):
A,B,C = map(int, input().split())

if B+C>=A:
    print(B+C-A)
else:
    print(0)

Solution (Python):
a, b, c = map(int, input().split())
print(c - min(a - b, c))

Solution (Python):
A,B,C = map(int, input().split())

ans = C - (A-B)
print(max(ans, 0))

Solution (Python):
A, B, C = map(int, input().split())
if B + C <= A:
    ans = 0
else:
    ans = C-(A-B)
    
print(ans)

Solution (Python):
i = list(map(int, input().split()))
x = i[2]-(i[0]-i[1])
if x <= 0:
  print('0')
else:
  print(x)

Solution (Python):
a, b, c = map(int, input().split())

mv_water = min(a - b, c)

print(c - mv_water)

Solution (Python):
A, B, C = map(int, input().split())
capacity = A - B
print(C - capacity) if C >= capacity else print(0)

Solution (Python):
a,b,c = map(int, input().split())

acceptable = a - b
remaining = 0

if c - acceptable <= 0:
    remaining = 0
else:
    remaining = c - acceptable

print(remaining)

Solution (Python):
a, b, c = map(int,input().split())
x = c - a + b
if x < 0:
  print(0)
else:
  print(x)

Solution (Python):
a,b,c = map(int,input().split())
print(max(0,c - (a-b)))

Solution (Python):
a, b, c = [int(x) for x in input().split(" ")]
 
rest = a - b
ans = c - rest
if ans < 0:
  ans = 0
 
print(ans)

Solution (Python):
A,B,C=list(map(int,input().split()))
print(max(0,C-(A-B)))

Solution (Python):
a,b,c = map(int, input().split())

s = a-b

if c-s > 0:
  print(c-s)
else:
  print(0)

Solution (Python):
a, b, c = map(int, input().split())
ans = max(c - (a - b), 0)
print(ans)

Solution (Python):
def slove():
    import sys
    input = sys.stdin.readline
    a, b, c = list(map(int, input().rstrip('\n').split()))
    print(max(c - (a - b), 0))


if __name__ == '__main__':
    slove()

Solution (Python):


a, b, c = map(int, input().split())

rest = a-b
if c < rest:
    print(0)
else:
    print(c-rest)

Solution (Python):
a,b,c = map(int, input().split())

print(0 if c-(a-b)<0 else c-(a-b))

Solution (Python):
A, B, C = map(int, input().split())
print(max(C-(A-B), 0))

Solution (Python):
A, B, C = list(map(int, input().split()))
ans = max(C-A+B, 0)
print(ans)

Solution (Python):
a,b,c = map(int,input().split())
if b+c <= a:
    print(0)
else:
    print(b+c-a)

Solution (Python):
a, b, c = [int(i) for i in input().split()]
cap = a - b
trans = cap if c >= cap else c
print(c - trans)

Solution (Python):
vol1_total, vol1_now, vol2_now = map(int, input().split(" "))

vol1_available = vol1_total - vol1_now
vol2_remain = vol2_now - vol1_available
if vol2_remain < 0:
    print("0")
else:
    print(vol2_remain)

Solution (Python):
a, b, c = map(int, input().split())
 
trans_amount = min(a - b, c)
print(c - trans_amount)

Solution (Python):
a,b,c = map(int,input().split())

if c-(a-b) <= 0:
    print(0)
else:
    print(c-(a-b) )

Solution (Python):
a,b,c=map(int,input().split())
if a-b>=c:
    print(0)
elif a-b<c:
    print(abs(c-a+b))

Solution (Python):
a, b, c = map(int, input().split())
if c-a+b < 0:
    print(0)
else:
    print(c-a+b)

Solution (Python):
a,b,c=map(int,input().split())
if a-b>c:
    print(0)
else:
    print(c+b-a)

Solution (Python):
ABC = input().split()
A = int(ABC[0])
B = int(ABC[1])
C = int(ABC[2])

ans = C - (A - B)

if ans < 0:
  print(0)
else:
  print(ans)

Solution (Python):
a,b,c = map(int,input().split())
print(c-(a-b) if c-(a-b)>0 else 0)

Solution (Python):
a,b,c = map(int, input().split())
ans = c-(a-b)
if ans>0:
    print(ans)
else:
    print(0)

Solution (Python):
a, b, c = map(int, input().split())
print(max(c-(a-b), 0))

Solution (Python):

import sys


def solve(A: int, B: int, C: int):
    print(max(C - (A - B), 0))
    return




def main():
    def iterate_tokens():
        for line in sys.stdin:
            for word in line.split():
                yield word
    tokens = iterate_tokens()
    A = int(next(tokens))  
    B = int(next(tokens))  
    C = int(next(tokens))  
    solve(A, B, C)

if __name__ == '__main__':
    main()

Solution (Python):
a,b,c = map(int,input().split())
d = c-(a-b)
if d < 0:
  print(0)
else:
  print(d)

Solution (Python):
A,B,C = list(map(int,input().split()))

ans = C-(A-B)
if ans > 0:
  print(ans)
else:
  print("0")

Solution (Python):
a, b, c = map(int, input().split())
if c-(a-b) < 0:
    print(0)
else:
    print(c-(a-b))

Solution (Python):
a,b,c,= [int(x) for x in input().split()]
n = c -(a-b)
if n > 0:
    print(n)
else:
    print(0)

Solution (Python):
A, B, C = map(int, input().split())

ans = max(0, C-(A-B))

print(ans)

Solution (Python):
a = list(map(int,input().split()))
if a[0] - a[1] < a[2]:
  print(a[2] - (a[0] - a[1]))
  
else:
  print(0)

Solution (Python):
a, b, c = map(int, input().split())
print(max(c - (a - b), 0))

Solution (Python):
A,B,C=map(int,input().split())
if C-(A-B)>0:
    print(C-(A-B))
else:
    print(0)

Solution (Python):
A,B,C =(int (i) for i in input().split())
z = A - B
d = C - z
if d < 0:
    d = 0
print(int(d))

Solution (Python):
A,B,C =input().split()
z = int(A) - int(B)
d = int(C) - z
if d < 0:
    d = 0
print(int(d))

Solution (Python):
A = list(map(int, input().split()))
if A[2] <= A[0]-A[1]:
  print(0)
  exit()
print(A[2] -(A[0]-A[1]))

Solution (Python):
n = list(map(int,input().split()))

print(max(0,n[2] - (n[0] - n[1])))

Solution (Python):
A,B,C = map(int,input().split())

answer = C-A+B

if answer >= 0:
	print(answer)

else :
	print(0)

Solution (Python):
array =  list(map(int, input().split(' ')))
a = array[0]
b = array[1]
c = array[2]

d = a-b

if (c - d) < 0:
    print(0)
else:
    print(c-d)

Solution (Python):
A, B, C = map(int, input().split(' '))
print(max(C - (A - B), 0))

Solution (Python):
A, B, C = [int(i) for i in input().split(' ')]

rest = A - B
C_rest = C - rest
if C_rest < 0:
    C_rest = 0

print(C_rest)

Solution (Python):
a, b, c = map(int, input().split())
ans = c - (a - b )
if ans < 0:
    print( 0 )
else:
    print( c - (a - b) )

Solution (Python):
a, b, c = [int(x) for x in input().split()]
water = max(c - (a - b), 0)
print(water)

Solution (Python):
a,b,c = [int(x) for x in input().split()]

sa = c - (a -b)
if sa  > 0:
    print(sa)
else:
    print("0")

Solution (Python):
A,B,C = map(int,input().split())
D = B+C
if A < D:
    print(D-A)

else:
    print(0)

Solution (Python):
a,b,c=map(int,input().split())
if a-b<c:
    print(c-(a-b))
else:
    print(0)

Solution (Python):
a,b,c = [int(a) for a in input().split()]

if b+c <= a:
    print(0)
else :
    b = b + c
    b = b - a
    print(b)

Solution (Python):
a,b,c = [int(x) for x in input().split()]
print(c-(a-b)) if (c-(a-b)) >= 0 else print("0")

Solution (Python):
a,b,c=map(int,input().split())

if c-(a-b)<=0:
  print(0)
else:
  print(c-(a-b))

Solution (Python):
a,b,c=map(int,input().split())
s=c-(a-b)
if s<=0:
  print(0)
else:
  print(s)

Solution (Python):
a,b,c = map(int,input().split())
print(max(0,c-(a-b)))

Solution (Python):
a,b,c = map(int, input().split())
ans = c-(a-b)
if ans>0:
    print(ans)
else:
    print(0)

Solution (Python):
a, b, c = map(int, input().split())

d = a - b

if c >= d:
	print(c-d)
else:
	print(0)

Solution (Python):
a,b,c = map(int, input().split())
if c-(a-b) > 0:
    print(c-(a-b))
else:
    print(0)

Solution (Python):
A,B,C = map(int,input().split())
if C<=A-B:
  print(0)
else:
  print(C-A+B)

Solution (Python):

A, B, C = map(int, input().split())

if (A - B < C) :
	X = C - (A - B)
else:
	X = 0


print("{0}".format(X))

Solution (Python):
a, b, c = map(int, input().split())

remained_water = c - (a - b)
if remained_water < 0:
  print(0)
else:
  print(remained_water)

Solution (Python):
v = [int(s) for s in input().split(" ")]
A = v[0]
B = v[1]
C = v[2]

r = C - A + B

print(r) if r > 0 else print(0)

Solution (Python):
num = list(map(int,input().split()))
a = num[0] 
b = num[1] 
c = num[2]
ans = c - (a - b) 

if ans<= 0:
    print(0)
else:
    print(ans)

Solution (Python):
a,b,c=map(int,input().split())
print(max(c-(a-b),0))

Solution (Python):
a, b, c = map(int, input().split(' '))
if c-(a-b) <= 0:
    print(0)
else: print(c-(a-b))

Solution (Python):
a, b, c = map(int, input().split())

ans = c - (a - b)
if ans < 0:
    ans = 0
print(ans)

Solution (Python):
a, b, c = map(int, input().split())

if c - ( a - b) >= 0  :
    print( c - ( a - b))
else:
    print(0)

Solution (Python):
a, b, c = map(int, input().split())
print(max(c - a + b, 0))

Solution (Python):
a,b,c = map(int,input().split())

print(max(c-(a-b),0))

Solution (Python):
A,B,C = (int(a) for a in input().split())
if B+C>A:
    print(B+C-A)
else:
    print("0")

Solution (Python):
A,B,C = (int(a) for a in input().split())
if B+C>A:
    print(B+C-A)
else:
    print("0")

Solution (Python):

i = list(map(int,input().split()))
if i[0] < i[1]+i[2]:
    l = i[1]+i[2]-i[0]
    print(l)
    
else:
    print(0)

Solution (Python):
a, b, c = map(int, input().split())
print(c - a + b if (a < c + b) else 0)

Solution (Python):
import sys
input = sys.stdin.readline
limit, nowl, addl = map(int, input().split())
print(max(0, nowl+addl-limit))

Solution (Python):
A,B,C = list(map(int,input().split()))
print(max(0,C-A+B))

Solution (Python):
a, b, c = map(int, input().split())
trans = a - b
ans = max(0, c - trans)
print(ans)

Solution (Python):
a, b, c = map(int, input().split())

if c-(a-b) >0:
    print(c-(a-b))
else:
    print(0)

Solution (Python):
A,B,C=[int(i) for i in input().split(" ")]
print(B+C-A if B+C-A>0 else 0)

Solution (Python):
A, B, C = [int(i) for i in input().split(" ")]
ans = C-A+B
print(ans if ans > 0 else 0)

Solution (Python):
A, B, C = [int(i) for i in input().split(" ")]
print(C-A+B if C-A+B > 0 else 0)

Solution (Python):
a, b, c = map(int, input().split())

print(c - a + b if c > a - b else 0)

Solution (Python):
a,b,c = (int(i) for i in input().split())
print(max(c-a+b,0))

Solution (Python):
A,B,C = map(int,input().split())
l = C-A+B
if l <= 0:
  print(0)
else:
  print(l)