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

if a - b > 0:

    a = a - b

else:

    a = a - a



if c - a > 0:

    print((c-a))

else:

    print((0))
def main():

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

    d = a-b

    print((max(0, c - d)))





if __name__ == '__main__':

    main()

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

def main():
    a, b, c = (int(i) for i in input().split())
    d = a - b
    print((max(0, c - d)))


if __name__ == "__main__":
    main()

-a, b, c = list(map(int, input().split())) -if a - b > 0: -    a = a - b -else: -    a = a - a -if c - a > 0: -    print((c - a)) -else: -    print((0)) +def main(): +    a, b, c = (int(i) for i in input().split()) +    d = a - b +    print((max(0, c - d))) + + +if __name__ == "__main__": +    main()