Skip to main content

~/algor $ cat contests/round-7/U

U. Area of a trapezoid

Problem U ICPC rules 1000 ms 64 MB

The bases and of a trapezoid and its height are given. Find its area :

A trapezoid: bottom base a, top base b, height h

Input

One line with three positive integers: , and .

Output

One number — , with exactly 1 digit after the decimal point (for example, 8.0).

Note

Examples

Input #1
3 5 2
Output #1
8.0
Input #2
1 2 1
Output #2
1.5

Sign in to submit a solution

Signing up is free and takes a minute.