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