using namespace std;
int x, y, z;
int main(){ cin >> x >> y >> z; long long res = 1ll * (x - y) * z; cout << res; }