#include #include int main() { char comma; int u, b, h; std::cin >> u >> comma >> b >> comma >> h; std::cout << std::fixed << std::setprecision(2) << (u + b) * h / 2.0 << std::endl; return 0; }