#include <iostream>
using namespace std;
int main() {
int a, b, h;
cin >> a >> b >> h;
cout << 0.5 * ( a + b ) * h;
cout.precision (2);
cout << fixed << 0.5 * ( a + b ) * h;
return 0;
}
I2luY2x1ZGUgPGlvc3RyZWFtPgp1c2luZyBuYW1lc3BhY2Ugc3RkOwoKaW50IG1haW4oKSB7CglpbnQgYSwgYiwgaDsKCWNpbiA+PiBhID4+IGIgPj4gaDsKCWNvdXQgPDwgMC41ICogKCBhICsgYiApICogaDsKCWNvdXQucHJlY2lzaW9uICgyKTsKCWNvdXQgPDwgZml4ZWQgPDwgMC41ICogKCBhICsgYiApICogaDsKCXJldHVybiAwOwp9