Problem B: 梯形面积

Memory Limit:128 MB Time Limit:1.000 S
Judge Style:Text Compare Creator:
Submit:166 Solved:50

Description

梯形面积的求解公式为 𝑆 = ( 𝑎 + 𝑏 ) × ℎ / 2 。从键盘读入一个梯形的上底 𝑎 、下底 𝑏  和高 h ,请计算表梯形的面积。(结果保留1位小数)。

Input

三个整数 𝑎 、 𝑏 、 ℎ

Output

梯形的面积

Sample Input Copy

2 3 5

Sample Output Copy

12.5