#include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #define rep(X,Y) for (int (X) = 0;(X) < (Y);++(X)) #define reps(X,S,Y) for (int (X) = S;(X) < (Y);++(X)) #define rrep(X,Y) for (int (X) = (Y)-1;(X) >=0;--(X)) #define repe(X,Y) for ((X) = 0;(X) < (Y);++(X)) #define peat(X,Y) for (;(X) < (Y);++(X)) #define all(X) (X).begin(),(X).end() using namespace std; typedef long long ll; typedef pair pii; typedef pair pll; int main() { int b1, b2, b3; cin >> b1 >> b2 >> b3; cout << (b2*b3 - b3*b3 - b1*b2 + b1*b3) / (b1 - b2) + b2 << endl; return 0; }