文件目录

#include <bits/stdc++.h>
using namespace std;

int main()
{
    int a, b, n;
    cin >> a >> b >> n;
    int c = b - a;
    cout << a + n * c - c;
    return 0;
}