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