#include using namespace std; int main(void){ // Your code here! double u, b, h; double A; scanf("%lf,%lf,%lf",&u,&b,&h); A = (u + b) * h / 2; printf("%.2lf\n",A); return 0; }