~/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 :
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