l=input().split(" ")
for i in range(len(l)):
l[i]=int(l[i])
s=l[0]
e=l[1]
x=l[2]
asd=e-s
w=s+asd*(x-1)
k=int((s+w)*x/2)
print(k)