include<stdio.h>

main()
{int up,down,height;
double s;
scanf("%d%d%d",&up,&down,&height);
s=(double)(up+down)*height/2;
printf("%.3f",s);}