#include int main(void){ int u,b,h; double A; scanf("%d,%d,%d",&u,&b,&h); A = (u+b)*(double)h/2; printf("%.2f",A); return 0; }