#include #include #include using namespace std; int main(void){ double a, b, c; cin >> a >> b >> c; int ans = round( (c*((c-b)/(b-a))+b) -(a*((c-b)/(b-a)))); cout << ans << endl; return 0; }