a, b, n = map(int, input().split()) print((b-a)(n-1)+a)
------Input------ 6 6 2 ------Answer----- 6 ------Your output-----