#include int main(void) { int a, b, c; float d; scanf("%d,%d,%d", &a, &b, &c); d = (a + b) * c / 2; printf("%.2f", d); return 0; }