# Enter your code here. Read input from STDIN. Print output to STDOUT l = map(int,raw_input().strip().split(' ')) print int((l[0]+l[1])*0.5*l[2])