100 atcoder#ABC136A. [ABC136A] Transfer

[ABC136A] Transfer

Score : 100100 points

Problem Statement

We have two bottles for holding water.

Bottle 11 can hold up to AA milliliters of water, and now it contains BB milliliters of water.

Bottle 22 contains CC milliliters of water.

We will transfer water from Bottle 22 to Bottle 11 as much as possible.

How much amount of water will remain in Bottle 22?

Constraints

  • All values in input are integers.
  • 1BA201 \leq B \leq A \leq 20
  • 1C201 \leq C \leq 20

Input

Input is given from Standard Input in the following format:

AA BB CC

Output

Print the integer representing the amount of water, in milliliters, that will remain in Bottle 22.

6 4 3
1

We will transfer two milliliters of water from Bottle 22 to Bottle 11, and one milliliter of water will remain in Bottle 22.

8 3 9
4
12 3 7
0