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