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