Bill never works or does anything productive in Mr.Hsiung's class. So, Mr.Hsiung orders him to fill up his water bottle, with a capacity of
Input Specification
The first line will contain
Output Specification
Output the maximum amount of water Mr.Hsiung's bottle can contain when Bill fills them.
Sample Input 1
3 2 10
Sample Output 1
10
Explanation 1
In this case, the entire bottle can be filled by using the second bottle
Sample Input 2
5 7 13
Sample Output 2
12
Explanation 2
In this case, Bill can use both bottles once to fill Mr.Hsiung's bottle up to
Comments