Problem4545--汽水兑奖

4545: 汽水兑奖

[Creator : ]
Time Limit : 1.000 sec  Memory Limit : 128 MiB

Description

汽水公司的兑换规则如下:

  • 收集 lns="http://www.w3.org/1998/Math/MathML">b 个瓶子,可以换一瓶新汽水。
  • 收集 lns="http://www.w3.org/1998/Math/MathML">c 个 瓶盖,也可以换一瓶新汽水。

我们在最开始拥有尚未开封的汽水 lns="http://www.w3.org/1998/Math/MathML">a 瓶。利用上述规则,总计可以喝到多少瓶汽水?注意不可向他人借瓶盖或瓶子。

Input

  • 单独一行:三个整数,分别表示 lns="http://www.w3.org/1998/Math/MathML">alns="http://www.w3.org/1998/Math/MathML">b 和 lns="http://www.w3.org/1998/Math/MathML">c
  • lns="http://www.w3.org/1998/Math/MathML">2b1,000
  • lns="http://www.w3.org/1998/Math/MathML">3c1,000



Output

  • 单个整数:表示能喝到多少瓶汽水。

Sample Input Copy

10 5 4

Sample Output Copy

17

Source/Category