# Enter your code here. Read input from STDIN. Print output to STDOUT a, b, t = map(int, raw_input().strip().split()) avg_growth = (float(a) + b) / 2 print int(avg_growth * t)