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