a,b,k=map(int,input().split()) A,B=0,0 for i in range(k): if AB:B+=b else:A+=a;B+=b print(min(A,B))