100 atcoder#ABC045A. [ABC045A] 台形

[ABC045A] 台形

Score : 100100 points

Problem Statement

You are given a trapezoid. The lengths of its upper base, lower base, and height are aa, bb, and hh, respectively.

An example of a trapezoid

Find the area of this trapezoid.

Constraints

  • 1a1001 \leq a \leq 100
  • 1b1001 \leq b \leq 100
  • 1h1001 \leq h \leq 100
  • All input values are integers.
  • hh is even.

Input

The input is given from Standard Input in the following format:

aa

bb

hh

Output

Print the area of the given trapezoid. It is guaranteed that the area is an integer.

3
4
2
7

When the lengths of the upper base, lower base, and height are 33, 44, and 22, respectively, the area of the trapezoid is (3+4)×2/2=7(3+4) \times 2/2 = 7.

4
4
4
16

In this case, a parallelogram is given, which is also a trapezoid.