#include int main(){ int a,b; long int t,res; scanf("%d %d %ld",&a,&b,&t); res=(0.5*a*t)+(0.5*b*t); printf("%ld",res); return 0; }