100 atcoder#ABC124A. [ABC124A] Buttons
[ABC124A] Buttons
Score : points
Problem Statement
There are two buttons, one of size and one of size .
When you press a button of size , you get coins and the size of that button decreases by .
You will press a button twice. Here, you can press the same button twice, or press both buttons once.
At most how many coins can you get?
Constraints
- All values in input are integers.
Input
Input is given from Standard Input in the following format:
Output
Print the maximum number of coins you can get.
5 3
9
You can get coins by pressing the button of size twice, and this is the maximum result.
3 4
7
6 6
12