# Enter your code here. Read input from STDIN. Print output to STDOUT a,b,m=raw_input().strip().split(' ') a=float(a) b=float(b) m=float(m) k=(0.5*a*m)+(0.5*b*m) print int(k)