#include<bits/stdc++.h> using namespace std; int n,m,k; int main(){ cin>>n>>m>>k; int x=m-n,j=n; for(int i=2;i<=k;i++){ j+=x; } cout<<j; return 0; }