#include <bits/stdc++.h>
using namespace std;
int main() {
double a,i,n,t = 0; cin >> a >> i >> n;
t = (n/2.0)*(2.0*a + (n-1.0)*a);
cout << fixed << (int)max(t-i,0.0);
return 0;
}
I2luY2x1ZGUgPGJpdHMvc3RkYysrLmg+CnVzaW5nIG5hbWVzcGFjZSBzdGQ7CgppbnQgbWFpbigpIHsKCWRvdWJsZSBhLGksbix0ID0gMDsJY2luID4+IGEgPj4gaSA+PiBuOwoJdCA9IChuLzIuMCkqKDIuMCphICsgKG4tMS4wKSphKTsKCWNvdXQgPDwgZml4ZWQgPDwgIChpbnQpbWF4KHQtaSwwLjApOwoJcmV0dXJuIDA7Cn0=