# A - Transfer
# https://atcoder.jp/contests/abc136/tasks/abc136_a

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

result = C - (A - B)

if result < 0:
    result = 0

print(result)

d815e69f0a79fff149156279a10ab92bface28cf
<mask token>

<mask token>
if result < 0:
    result = 0
print(result)

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

# A - Transfer
# https://atcoder.jp/contests/abc136/tasks/abc136_a

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

result = C - (A - B)

if result < 0:
    result = 0

print(result)
