#include using namespace std; int main() { double u, b, h; char x, y;cin >> u >> x>> b >> y>> h; double a = (u+b)*h/2; cout << fixed << setprecision(2); cout << a; }