#include<bits/stdc++.h> using namespace std; int a1,a2,n; int main(){ cin>>a1>>a2>>n; cout<<(a2-a1)*(n-1)+a1; return 0; }