#abc045a. [abc045_a]Trapezoids
[abc045_a]Trapezoids
Problem Statement
You are given a trapezoid. The lengths of its upper base, lower base, and height are , , and , respectively.
An example of a trapezoid
Find the area of this trapezoid.
Constraints
- All input values are integers.
- is even.
Input
The input is given from Standard Input in the following format:
Output
Print the area of the given trapezoid. It is guaranteed that the area is an integer.
Sample Input 1
3
4
2
Sample Output 1
7
When the lengths of the upper base, lower base, and height are , , and , respectively, the area of the trapezoid is .
Sample Input 2
4
4
4
Sample Output 2
16
In this case, a parallelogram is given, which is also a trapezoid.