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