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