z = list(map(int, input().split())) t = z[2] a = int((z[0] + z[1]) / 2) total = 1 print(a * total * t)