a,b,c=(input()).split() k=0.5*(int(a)+int(b))*int(c) print(int(k))