# ABC136a

import sys

input = sys.stdin.readline

sys.setrecursionlimit(10**6)



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



print((max(0, c-(a-b))))
def main():

    import sys

    input = sys.stdin.readline

    sys.setrecursionlimit(10**6)

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

    print((c-min(a-b, c)))





if __name__ == '__main__':

    main()

# ABC136a
import sys

input = sys.stdin.readline
sys.setrecursionlimit(10**6)
a, b, c = list(map(int, input().split()))
print((max(0, c - (a - b))))

def main():
    import sys

    input = sys.stdin.readline
    sys.setrecursionlimit(10**6)
    a, b, c = list(map(int, input().split()))
    print((c - min(a - b, c)))


if __name__ == "__main__":
    main()

-# ABC136a -import sys +def main(): +    import sys -input = sys.stdin.readline -sys.setrecursionlimit(10**6) -a, b, c = list(map(int, input().split())) -print((max(0, c - (a - b)))) +    input = sys.stdin.readline +    sys.setrecursionlimit(10**6) +    a, b, c = list(map(int, input().split())) +    print((c - min(a - b, c))) + + +if __name__ == "__main__": +    main()