#include<iostream> #include<cstdio> using namespace std; int main(){ int a1,a2,n,d; cin>>a1>>a2>>n; cout<<a1+(n-1)*(a2-a1)<<endl; return 0; }