Problem4488--奖牌的数量

4488: 奖牌的数量

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

Description

在比赛中,获得了 lns="http://www.w3.org/1998/Math/MathML">a 枚金牌,获得的银牌数量比金牌多 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,b,c,请写一个程序读入数据后计算并输出获得的奖牌总数。

Input

  • 第一行:单个整数表示 lns="http://www.w3.org/1998/Math/MathML">a
  • 第二行:单个整数表示 lns="http://www.w3.org/1998/Math/MathML">b
  • 第三行:单个整数表示 lns="http://www.w3.org/1998/Math/MathML">c

Output

  • 单个整数:表示奖牌总数。

Sample Input Copy

1
2
3

Sample Output Copy

10

HINT

金牌1枚,银牌3枚,铜牌6枚,共10枚

Source/Category