#ABC124A. Buttons

Buttons

题目描述

There are two buttons, one of size AA and one of size BB.

When you press a button of size XX, you get XX coins and the size of that button decreases by 11.

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?

有两个按钮,一个大小为 AA ,另一个大小为 BB 。

当你按下大小为 XX 的按钮时,你得到了 XX 枚硬币,而该按钮的大小减少了 11 。

您会按下一个按钮两次。在这里,您可以按同一个按钮两次,也可以同时按两个按钮一次。

您最多可以得到多少枚金币?

输入格式

输入内容按以下格式标准输入:

AA BB

输出格式

打印您能获得的最大硬币数。

样例 #1

样例输入 #1

5 3

样例输出 #1

9

样例 #2

样例输入 #2

3 4

样例输出 #2

7

样例 #3

样例输入 #3

6 6

样例输出 #3

12

说明

数据规模与约定

  • 输入值均为整数。
  • 3≤A,B≤203 \leq A, B \leq 20

样例 11 解释

按两次大小为 55 的按钮可以得到 5+4=95 + 4 = 9 枚金币,这是最大结果。